$hooksgetClassParents()

Get an array of parent classes and interfaces for the given object

Usage

// basic usage
$array = $hooks->getClassParents($object);

// usage with all arguments
$array = $hooks->getClassParents($object, bool $cache = true);

Arguments

NameType(s)Description
$objectWire string

Maybe either object instance or class name

$cache (optional)bool

Allow use of cache for getting or storing? Default:true

Return value

array


$hooks methods and properties

API reference based on ProcessWire core version 3.0.251