$hooks→getStaticHooks()
Get static hooks for object/class, optionally for specific method
Returned value indexed by method name, unless a method was specified in which case it's indexed by priority level (i.e. '100.0').
Available since version 3.0.261.
Usage
// basic usage
$array = $hooks->getStaticHooks($class);
// usage with all arguments
$array = $hooks->getStaticHooks($class, string $method = '', bool $checkParents = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$class | string Wire | Class or Wire instance to get static hooks for |
$method (optional) | string | Optionally specify method or blank string for all Default:'' |
$checkParents (optional) | bool | Also include hooks to parent classes? Default:false |
Return value
array
API reference based on ProcessWire core version 3.0.261