extension_interface
interface extension_interface
Contract that all MIDDAG extensions must implement.
Extensions act as micro-plugins within the MIDDAG ecosystem.
Methods
Get the unique machine name of the extension (e.g., 'certificate', 'payment').
Get the human-readable label.
Get the current version of the extension.
Get the list of dependencies (slugs) required by this extension.
Get the group classification for this extension.
Register services into the DI container during Kernel boot.
Execution logic called after the Kernel has compiled.
Check if the extension is enabled in the database/config.
Check if this is the core system extension.
Internal check for hardcoded enabling/disabling logic.
Returns true if the resource is technically available (dependencies met).
Return the extension title (localized).
Return the extension description (localized).
Return UI badges.
Return configuration URL.
Does this extension provide settings pages?
Get the list of Moodle events this extension is interested in.
Details
at line 36
string
get_name()
Get the unique machine name of the extension (e.g., 'certificate', 'payment').
at line 41
string
get_label()
Get the human-readable label.
at line 46
string
get_version()
Get the current version of the extension.
at line 53
array
get_dependencies()
Get the list of dependencies (slugs) required by this extension.
at line 58
extension_group
get_group()
Get the group classification for this extension.
at line 64
void
register(ContainerInterface $container)
Register services into the DI container during Kernel boot.
This replaces the old 'bootstrap.php' logic partially.
at line 70
void
boot()
Execution logic called after the Kernel has compiled.
Used to register hooks, event listeners, etc.
at line 75
bool
is_enabled()
Check if the extension is enabled in the database/config.
at line 80
bool
is_core()
Check if this is the core system extension.
at line 85
bool
is_enabled_internally()
Internal check for hardcoded enabling/disabling logic.
at line 90
bool
is_available()
Returns true if the resource is technically available (dependencies met).
at line 95
string
get_title()
Return the extension title (localized).
at line 100
string
get_description()
Return the extension description (localized).
at line 107
array
get_extension_badges()
Return UI badges.
at line 112
moodle_url
get_config_page_url()
Return configuration URL.
at line 117
bool
has_moodle_settings()
Does this extension provide settings pages?
at line 124
array
get_moodle_events()
Get the list of Moodle events this extension is interested in.