Filter and return hooks matching given property and value
Usage
$array = $hooks->filterHooks(array $hooks, string $property, $value);
Arguments
Name | Type(s) | Description |
---|---|---|
hooks | array | Hooks from getHooks() method |
property | string | Property name from hook (or hook options) |
value | string, bool, int | Value to match |
Return value
array
API reference based on ProcessWire core version 3.0.236