Pimcore\Controller\Action\Frontend::preDispatch PHP Method

preDispatch() public method

public preDispatch ( )
    public function preDispatch()
    {
        // initialize translation if required
        $this->initTranslation();
        // this is for $this->action() in templates when they are inside a block element
        try {
            if (!$this->getParam("disableBlockClearing")) {
                $this->parentBlockCurrent = \Zend_Registry::get("pimcore_tag_block_current");
                $this->parentBlockNumeration = \Zend_Registry::get("pimcore_tag_block_numeration");
                \Zend_Registry::set("pimcore_tag_block_current", null);
                \Zend_Registry::set("pimcore_tag_block_numeration", null);
            }
        } catch (\Exception $e) {
            Logger::debug($e);
        }
    }