$hooks->filterPathHooks() method

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.248

Latest news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer