$hooksisMethodHooked()

Similar to isHooked() method but also checks parent classes for the hooked method as well

This method is designed for fast determinations of whether something is hooked

Usage

$bool = $hooks->isMethodHooked($class, string $method);

Arguments

NameType(s)Description
$classstring Wire
$methodstring

Name of method

Return value

bool


$hooks methods and properties

API reference based on ProcessWire core version 3.0.251