MIDDAG for Moodle

dashboard_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  = 'dashboard'
GROUP  = \local_middag\framework\shared\enum\extension_group::REPORTS->value
PRIORITY  = 10

Methods

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_quick_access_links()  : array<int, array{id: string, title: string, url: mixed}>
Provide quick access links (tabs) for Shops and Orders.
get_capabilities()  : array<string|int, mixed>

Constants

GROUP

public mixed GROUP = \local_middag\framework\shared\enum\extension_group::REPORTS->value

Methods

get_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

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_capabilities()

protected get_capabilities() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results