hook()
hook(string $method, \Closure $call) : void
Attaches a closure function to a method.
Method must be available to hooks.
Parameters
string |
$method |
Method to hook. |
\Closure |
$call |
The call to add to the method in question. |
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275