Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core\hooks Class Reference
Inheritance diagram for core\hooks:
core\hook\discovery_agent

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.
 

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: