Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core\hook\discovery_agent Interface Reference

This interface describes a class which can discover all hook classes of a plugin. More...

Inheritance diagram for core\hook\discovery_agent:

Static Public Member Functions

static discover_hooks ()
 Returns a list of hooks for component.
 

Detailed Description

This interface describes a class which can discover all hook classes of a plugin.

To add new discovery agent in your plugin you need to add your_plugin\hooks class that implements this interface.

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

Member Function Documentation

◆ discover_hooks()

static core\hook\discovery_agent::discover_hooks ( )
static

Returns a list of hooks for component.

Return values
array

Implemented in core\hooks.


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