videolibrary_extension extends extension
Public SDK Extension.
Extensions should extend this class to register controllers, services, routes, and other lifecycle hooks exposed by the framework.
Table of Contents
Constants
- EXTENSION_IDNUMBER = 'videolibrary'
- GROUP = \local_middag\framework\shared\enum\extension_group::LEARNING->value
- PRIORITY = 25
Methods
- get_config_page_title() : string
- get_extension_badges() : array<string|int, mixed>
- Get the badges associated with the extension.
- get_icon() : string
- Returns the icon slug for this extension.
- get_settings_pages() : array<int, object>
- Build the admin settings pages for this extension.
- has_moodle_settings() : bool
- Whether this extension provides Moodle settings.
- is_available() : bool
- Check if the resource is available.
- get_capabilities() : array<string|int, mixed>
Constants
EXTENSION_IDNUMBER
public
mixed
EXTENSION_IDNUMBER
= 'videolibrary'
GROUP
public
mixed
GROUP
= \local_middag\framework\shared\enum\extension_group::LEARNING->value
PRIORITY
public
mixed
PRIORITY
= 25
Methods
get_config_page_title()
public
get_config_page_title() : string
Return values
stringget_extension_badges()
Get the badges associated with the extension.
public
get_extension_badges() : array<string|int, mixed>
severity: secondary, success, info, warn, danger, contrast label: name.
Return values
array<string|int, mixed> —the badges of the extension
get_icon()
Returns the icon slug for this extension.
public
get_icon() : string
Return values
string —Icon identifier under pix/extensions
get_settings_pages()
Build the admin settings pages for this extension.
public
get_settings_pages() : array<int, object>
Return values
array<int, object>has_moodle_settings()
Whether this extension provides Moodle settings.
public
has_moodle_settings() : bool
Return values
bool —True if this extension exposes admin settings pages
is_available()
Check if the resource is available.
public
is_available() : bool
Return values
bool —the availability status of the resource
get_capabilities()
protected
get_capabilities() : array<string|int, mixed>