/**
  * @param AbstractElement $element
  * @return string
  */
 protected function _getElementHtml(AbstractElement $element)
 {
     $extensionVersion = $this->_helper->getExtensionVersion();
     $versionLabel = sprintf('<a href="%s" title="Easy Template Path Hints for Magento 2" target="_blank">%s</a>', self::EXTENSION_URL, $extensionVersion);
     $element->setValue($versionLabel);
     return $element->getValue();
 }
 /**
  * @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;
 }