Plugin/DebugHints.php
public function afterCreate(
        TemplateEngineFactory $subject,
        TemplateEngineInterface $invocationResult
    ): TemplateEngineInterface {
        $storeCode = $this->storeManager->getStore()->getCode();
        if (
            $this->config->isEnabledLayoutDebug() &&
            $this->request->getParam('hints') &&
            $this->devHelper->isDevAllowed()
        ) {
            $showBlockHints = (
                $this->scopeConfig->getValue(
                    self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS,
                    ScopeInterface::SCOPE_STORE,
                    $storeCode
                ) || $this->request->getParam('hints-block')
            );

            return $this->debugHintsFactory->create([
                'subject' => $invocationResult,
                'showBlockHints' => $showBlockHints,
            ]);
        }

        return $invocationResult;
    }
public function afterCreate(
        TemplateEngineFactory $subject,
        TemplateEngineInterface $invocationResult
    ): TemplateEngineInterface {
        $storeCode = $this->storeManager->getStore()->getCode();
        if (
            $this->config->isEnabledLayoutDebug() &&
            $this->request->getParam('hints') &&
            $this->devHelper->isDevAllowed()
        ) {
            $showBlockHints = (
                $this->scopeConfig->getValue(
                    self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS,
                    ScopeInterface::SCOPE_STORE,
                    $storeCode
                ) || $this->request->getParam('hints-block')
            );

            return $this->debugHintsFactory->create([
                'subject' => $invocationResult,
                'showBlockHints' => $showBlockHints,
            ]);
        }

        return $invocationResult;
    }
public function afterCreate ( TemplateEngineFactory $ subject , TemplateEngineInterface $ invocationResult ) : TemplateEngineInterface { $ storeCode = $ this -> storeManager -> getStore ( ) -> getCode ( ) ; if ( $ this -> config -> isEnabledLayoutDebug ( ) && $ this -> request -> getParam ( 'hints' ) && $ this -> devHelper -> isDevAllowed ( ) ) { $ showBlockHints = ( $ this -> scopeConfig -> getValue ( self :: XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS , ScopeInterface :: SCOPE_STORE , $ storeCode ) || $ this -> request -> getParam ( 'hints-block' ) ) ; return $ this -> debugHintsFactory -> create ( [ 'subject' => $ invocationResult , 'showBlockHints' => $ showBlockHints , ] ) ; } return $ invocationResult ; }
Wrap template engine instance with the debugging hints decorator, depending of the store configuration

@param TemplateEngineFactory $subject
@param TemplateEngineInterface $invocationResult

@return TemplateEngineInterface
Wrap template engine instance with the debugging hints decorator depending of the store configuration