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?
Details
at line 34
string
get_name()
Get the unique machine name of the extension (e.g., 'certificate', 'payment').
at line 39
string
get_label()
Get the human-readable label.
at line 44
string
get_version()
Get the current version of the extension.
at line 51
array
get_dependencies()
Get the list of dependencies (slugs) required by this extension.
at line 56
extension_group
get_group()
Get the group classification for this extension.
at line 62
void
register(ContainerInterface $container)
Register services into the DI container during Kernel boot.
This replaces the old 'bootstrap.php' logic partially.
at line 68
void
boot()
Execution logic called after the Kernel has compiled.
Used to register hooks, event listeners, etc.
at line 73
bool
is_enabled()
Check if the extension is enabled in the database/config.
at line 78
bool
is_core()
Check if this is the core system extension.
at line 83
bool
is_enabled_internally()
Internal check for hardcoded enabling/disabling logic.
at line 88
bool
is_available()
Returns true if the resource is technically available (dependencies met).
at line 93
string
get_title()
Return the extension title (localized).
at line 98
string
get_description()
Return the extension description (localized).
at line 105
array
get_extension_badges()
Return UI badges.
at line 110
moodle_url
get_config_page_url()
Return configuration URL.
at line 115
bool
has_moodle_settings()
Does this extension provide settings pages?