/** * @param \Magento\Framework\Event\Observer $observer * * @return $this */ public function controllerActionPredispatch(\Magento\Framework\Event\Observer $observer) { $this->_helper->log($observer->getEvent()->getName(), true); if ($this->_helper->shouldShowTemplatePathHints()) { $this->_mutableConfig->setValue(\MagePsycho\Easypathhints\Helper\Data::XML_PATH_DEV_DEBUG_TEMPLATE_HINTS, 1, \Magento\Store\Model\ScopeInterface::SCOPE_STORE); $this->_mutableConfig->setValue(\MagePsycho\Easypathhints\Helper\Data::XML_PATH_DEV_DEBUG_TEMPLATE_HINTS_BLOCKS, 1, \Magento\Store\Model\ScopeInterface::SCOPE_STORE); if ($this->_helper->getShowProfiler()) { $_SERVER['MAGE_PROFILER'] = 'html'; } } return $this; }