$hooksfilterPathHooks()

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

NameType(s)Description
$requestPathstring
$has (optional)bool

Specify true to change return value to boolean as to whether any can match Default:false

Return value

array bool


$hooks methods and properties

API reference based on ProcessWire core version 3.0.252