$hooksgetStaticHooks()

Get static hooks for object/class, optionally for specific method

Returned value indexed by method name, unless a method was specified in which case it's indexed by priority level (i.e. '100.0').

Available since version 3.0.261.

Usage

// basic usage
$array = $hooks->getStaticHooks($class);

// usage with all arguments
$array = $hooks->getStaticHooks($class, string $method = '', bool $checkParents = false);

Arguments

NameType(s)Description
$classstring Wire

Class or Wire instance to get static hooks for

$method (optional)string

Optionally specify method or blank string for all Default:''

$checkParents (optional)bool

Also include hooks to parent classes? Default:false

Return value

array


$hooks methods and properties

API reference based on ProcessWire core version 3.0.261