ecommerce_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 = 'ecommerce'
- GROUP = \local_middag\framework\shared\enum\extension_group::INTEGRATIONS->value
- PRIORITY = 10
Methods
- get_config_page_title() : string
- get_icon() : string
- Returns the icon slug for this extension.
- get_quick_access_links() : array<int, array{id: string, title: string, url: mixed}>
- Provide quick access links (tabs) for Shops and Orders.
- get_settings_pages() : array<int, object>
- Build the admin settings pages for this extension.
- has_moodle_settings() : bool
- E-commerce provides Moodle settings.
Constants
EXTENSION_IDNUMBER
public
mixed
EXTENSION_IDNUMBER
= 'ecommerce'
GROUP
public
mixed
GROUP
= \local_middag\framework\shared\enum\extension_group::INTEGRATIONS->value
PRIORITY
public
mixed
PRIORITY
= 10
Methods
get_config_page_title()
public
get_config_page_title() : string
Return values
stringget_icon()
Returns the icon slug for this extension.
public
get_icon() : string
Return values
string —Icon identifier present under pix/extensions
get_quick_access_links()
Provide quick access links (tabs) for Shops and Orders.
public
get_quick_access_links() : array<int, array{id: string, title: string, url: mixed}>
Return values
array<int, array{id: string, title: string, url: mixed}> —List of quick links
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()
E-commerce provides Moodle settings.
public
has_moodle_settings() : bool
Return values
bool —True if this extension exposes admin settings pages