11 use Magento\Developer\Model\TemplateEngine\Decorator\DebugHintsFactory;
64 private $debugHintsWithParam;
73 private $debugHintsParameter;
92 $debugHintsWithParam =
null,
93 $debugHintsParameter =
null 103 $this->debugHintsWithParam = $debugHintsWithParam;
104 $this->debugHintsParameter = $debugHintsParameter;
120 $storeCode = $this->storeManager->getStore()->getCode();
122 && $this->devHelper->isDevAllowed()) {
123 $debugHintsWithParam = $this->scopeConfig->getValue(
124 $this->debugHintsWithParam,
128 $debugHintsParameter = $this->scopeConfig->getValue(
129 $this->debugHintsParameter,
133 $debugHintsParameterInUrl = $this->http->getParam(
'templatehints');
136 if (!$debugHintsWithParam) {
139 if ($debugHintsWithParam && $debugHintsParameter == $debugHintsParameterInUrl) {
144 $showBlockHints = $this->scopeConfig->getValue(
145 self::XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS,
149 return $this->debugHintsFactory->create([
150 'subject' => $invocationResult,
151 'showBlockHints' => $showBlockHints,
155 return $invocationResult;
afterCreate(TemplateEngineFactory $subject, TemplateEngineInterface $invocationResult)
__construct(ScopeConfigInterface $scopeConfig, StoreManagerInterface $storeManager, DevHelper $devHelper, DebugHintsFactory $debugHintsFactory, $debugHintsPath, Http $http=null, $debugHintsWithParam=null, $debugHintsParameter=null)
const XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS