Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core\hooks Class Reference

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...

Inheritance diagram for core\hooks:

Static Public Member Functions

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.
 

Detailed Description

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.

License
https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ discover_hooks()

static core\hooks::discover_hooks ( )
static

Returns all Moodle hooks in standard hook namespace.

Return values
arraylist 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
arraylist of hook classes

The documentation for this class was generated from the following file: