interface extension_interface

Contract that all MIDDAG extensions must implement.

Extensions act as micro-plugins within the MIDDAG ecosystem.

Methods

string
get_name()

Get the unique machine name of the extension (e.g., 'certificate', 'payment').

string
get_label()

Get the human-readable label.

string
get_version()

Get the current version of the extension.

array
get_dependencies()

Get the list of dependencies (slugs) required by this extension.

extension_group
get_group()

Get the group classification for this extension.

void
register(ContainerInterface $container)

Register services into the DI container during Kernel boot.

void
boot()

Execution logic called after the Kernel has compiled.

bool
is_enabled()

Check if the extension is enabled in the database/config.

bool
is_core()

Check if this is the core system extension.

bool
is_enabled_internally()

Internal check for hardcoded enabling/disabling logic.

bool
is_available()

Returns true if the resource is technically available (dependencies met).

string
get_title()

Return the extension title (localized).

string
get_description()

Return the extension description (localized).

array
get_extension_badges()

Return UI badges.

moodle_url
get_config_page_url()

Return configuration URL.

bool
has_moodle_settings()

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').

Return Value

string

at line 39
string get_label()

Get the human-readable label.

Return Value

string

at line 44
string get_version()

Get the current version of the extension.

Return Value

string

at line 51
array get_dependencies()

Get the list of dependencies (slugs) required by this extension.

Return Value

array

at line 56
extension_group get_group()

Get the group classification for this extension.

Return Value

extension_group

at line 62
void register(ContainerInterface $container)

Register services into the DI container during Kernel boot.

This replaces the old 'bootstrap.php' logic partially.

Parameters

ContainerInterface $container

Return Value

void

at line 68
void boot()

Execution logic called after the Kernel has compiled.

Used to register hooks, event listeners, etc.

Return Value

void

at line 73
bool is_enabled()

Check if the extension is enabled in the database/config.

Return Value

bool

at line 78
bool is_core()

Check if this is the core system extension.

Return Value

bool

at line 83
bool is_enabled_internally()

Internal check for hardcoded enabling/disabling logic.

Return Value

bool

at line 88
bool is_available()

Returns true if the resource is technically available (dependencies met).

Return Value

bool

at line 93
string get_title()

Return the extension title (localized).

Return Value

string

at line 98
string get_description()

Return the extension description (localized).

Return Value

string

at line 105
array get_extension_badges()

Return UI badges.

Return Value

array

at line 110
moodle_url get_config_page_url()

Return configuration URL.

Return Value

moodle_url

at line 115
bool has_moodle_settings()

Does this extension provide settings pages?

Return Value

bool