extension_service_interface
interface extension_service_interface
Public contract for the Extension Service.
This interface exposes ONLY the operations that extensions, facades, controllers and external APIs are allowed to call.
Implemented by:
- local_middag\application\common\extension_service
Wrapped by facade:
- local_middag\facade\extension_service
Constants
| COMPONENT_NAME |
|
Methods
Get an extension instance by slug.
Get all extension instances (enabled or disabled) indexed by slug.
Get only the enabled extension instances indexed by slug.
Boot all enabled extensions.
Check whether an extension is enabled.
Enable an extension.
Disable an extension.
Data prepared for UI rendering.
Get the icon URL for an extension.
Details
at line 48
extension_interface|null
get(string $slug)
Get an extension instance by slug.
at line 55
array
get_all()
Get all extension instances (enabled or disabled) indexed by slug.
at line 62
array
get_active_extensions()
Get only the enabled extension instances indexed by slug.
at line 67
void
boot_all()
Boot all enabled extensions.
at line 76
bool
is_enabled(string $slug)
Check whether an extension is enabled.
at line 83
void
enable(string $slug)
Enable an extension.
at line 90
void
disable(string $slug)
Disable an extension.
at line 97
array
list_for_ui()
Data prepared for UI rendering.
at line 106
static moodle_url
get_icon_url(string $slug)
Get the icon URL for an extension.