27 private $_showBlockHints;
33 public function __construct(\
Magento\Framework\View\TemplateEngineInterface $subject, $showBlockHints)
35 $this->_subject = $subject;
36 $this->_showBlockHints = $showBlockHints;
44 public function render(\
Magento\Framework\View\Element\BlockInterface
$block, $templateFile, array $dictionary = [])
46 $result = $this->_subject->render(
$block, $templateFile, $dictionary);
47 if ($this->_showBlockHints) {
65 <div
class=
"debugging-hints" style=
"position: relative; border: 1px dotted red; margin: 6px 2px; padding: 18px 2px 2px 2px;">
66 <div
class=
"debugging-hint-template-file" style=
"position: absolute; top: 0; padding: 2px 5px; font: normal 11px Arial; background: red; left: 0; color: white; white-space: nowrap;" onmouseover=
"this.style.zIndex = 999;" onmouseout=
"this.style.zIndex = 'auto';" title=
"{$templateFile}">{$templateFile}</div>
82 $blockClass = get_class(
$block);
85 <div
class=
"debugging-hint-block-class" style=
"position: absolute; top: 0; padding: 2px 5px; font: normal 11px Arial; background: red; right: 0; color: blue; white-space: nowrap;" onmouseover=
"this.style.zIndex = 999;" onmouseout=
"this.style.zIndex = 'auto';" title=
"{$blockClass}">{$blockClass}</div>
_renderBlockHints($blockHtml, \Magento\Framework\View\Element\BlockInterface $block)
__construct(\Magento\Framework\View\TemplateEngineInterface $subject, $showBlockHints)
render(\Magento\Framework\View\Element\BlockInterface $block, $templateFile, array $dictionary=[])
_renderTemplateHints($blockHtml, $templateFile)