TemplateHooks_Extension::hookInto
Signature
public function hookInto(string|array
$hook,
array|callable|string
$method,
[integer
$priority = 50] )
Parameters
$hook
— object- the hook you would like to subscribe to
$method
— object- the function that should be executed when the hook is called.
Can be an array($object, 'methodName') or a closure function($hook){} or a method name of the calling object. $priority
— integer- the priority (higher will be processed earlier - good for sorting)