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