Standard hook discovery agent for Moodle which lists all non-abstract classes in hooks namespace of core and all plugins unless there is a hook discovery agent in a plugin.
More...
|
static | discover_hooks () |
| Returns all Moodle hooks in standard hook namespace.
|
|
static | discover_hooks_in_namespace (string $component, string $namespace) |
| Look up all non-abstract classes in "$component::$namespace" namespace.
|
|
Standard hook discovery agent for Moodle which lists all non-abstract classes in hooks namespace of core and all plugins unless there is a hook discovery agent in a plugin.
- Copyright
- Andrew Lyons andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ discover_hooks()
static core\hooks::discover_hooks |
( |
| ) |
|
|
static |
Returns all Moodle hooks in standard hook namespace.
- Return values
-
array | list of hook classes |
Implements core\hook\discovery_agent.
◆ discover_hooks_in_namespace()
static core\hooks::discover_hooks_in_namespace |
( |
string | $component, |
|
|
string | $namespace ) |
|
static |
Look up all non-abstract classes in "$component::$namespace" namespace.
- Parameters
-
string | $component | |
string | $namespace | |
- Return values
-
array | list of hook classes |
The documentation for this class was generated from the following file: