Return path hooks that have potential to match given request path
Available since version 3.0.174.
Usage
// basic usage
$array = $hooks->filterPathHooks(string $requestPath);
// usage with all arguments
$array = $hooks->filterPathHooks(string $requestPath, bool $has = false);
Arguments
Name | Type(s) | Description |
---|---|---|
requestPath | string | |
has (optional) | bool | Specify true to change return value to boolean as to whether any can match (default=false) |
Return value
array
bool
API reference based on ProcessWire core version 3.0.236