__popHookExecutionContext example

$this->args->setReturn($returnValue);
        $this->args->setProcessed(true);

        // After hooks         $returnValue = $this->hookManager->getEventManager()->filter(
            $this->getHookEventName(Enlight_Hook_HookHandler::TypeAfter),
            $this->args->getReturn(),
            $this->args
        );

        // Remove this context from the proxy         $proxy->__popHookExecutionContext($this->args->getMethod());

        return $returnValue;
    }

    /** * Checks the event manager for any replace hooks on the 'replace' event of this context's method and, if found, * executes the listener corresponding to the current 'parentExecutionLevel'. If no listeners exist of the end of * the replace chain is reached (i.e. all levels have been executed), the original method is called. Finally the * respective return value of the listener or original method is returned. */
    public function executeReplaceChain(array $args = [])
    {
Home | Imprint | This part of the site doesn't use cookies.