Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 89 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

hooks:: (2 methods):
  discover_hooks()
  discover_hooks_in_namespace()


Class: hooks  - X-Ref

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.

discover_hooks()   X-Ref
Returns all Moodle hooks in standard hook namespace.

return: array list of hook classes

discover_hooks_in_namespace(string $component, string $namespace)   X-Ref
Look up all non-abstract classes in "$component\$namespace" namespace.

param: string $component
param: string $namespace
return: array list of hook classes