Beispiel #1
0
 /**
  * Insert debugging hints into the rendered block contents
  *
  * {@inheritdoc}
  */
 public function render(\Magento\Framework\View\Element\BlockInterface $block, $templateFile, array $dictionary = array())
 {
     $result = $this->_subject->render($block, $templateFile, $dictionary);
     if ($this->_showBlockHints) {
         $result = $this->_renderBlockHints($result, $block);
     }
     $result = $this->_renderTemplateHints($result, $templateFile);
     return $result;
 }
 /**
  * Insert debugging hints into the rendered block contents
  *
  * {@inheritdoc}
  */
 public function render(BlockInterface $block, $templateFile, array $dictionary = [])
 {
     $orgHtml = $this->_subject->render($block, $templateFile, $dictionary);
     if ($this->_showBlockHints) {
         $blockHits = $this->_renderBlockHints("", $block);
     }
     $templateHits = $this->_renderTemplateHints("", $templateFile);
     $result = $this->_renderBlockDescription($templateHits, $blockHits, $orgHtml);
     return $result;
 }
 /**
  * Insert debugging hints into the rendered block contents
  *
  * {@inheritdoc}
  */
 public function render(\Magento\Framework\View\Element\BlockInterface $block, $templateFile, array $dictionary = [])
 {
     $result = $this->_subject->render($block, $templateFile, $dictionary);
     $result = $this->_renderAdvancedTemplateHints($result, $templateFile, $block);
     return $result;
 }