$hooks→getHooks()
Return all hooks associated with $object or method (if specified)
Usage
// basic usage
$array = $hooks->getHooks(Wire $object);
// usage with all arguments
$array = $hooks->getHooks(Wire $object, string $method = '', int $getHooks = 0);
Arguments
Name | Type(s) | Description |
---|---|---|
$object | Wire | |
$method (optional) | string | Optional method that hooks will be limited to. Or specify '*' to return all hooks everywhere. |
$getHooks (optional) | int | Get hooks of type, specify one of the following constants:
|
Return value
array
API reference based on ProcessWire core version 3.0.251