Definition at line 19 of file DebugHints.php.
◆ __construct()
__construct |
( |
ScopeConfigInterface |
$scopeConfig, |
|
|
StoreManagerInterface |
$storeManager, |
|
|
DevHelper |
$devHelper, |
|
|
DebugHintsFactory |
$debugHintsFactory, |
|
|
|
$debugHintsPath, |
|
|
Http |
$http = null , |
|
|
|
$debugHintsWithParam = null , |
|
|
|
$debugHintsParameter = null |
|
) |
| |
- Parameters
-
ScopeConfigInterface | $scopeConfig | |
StoreManagerInterface | $storeManager | |
DevHelper | $devHelper | |
DebugHintsFactory | $debugHintsFactory | |
string | $debugHintsPath | |
Http | $http | |
string | $debugHintsWithParam | |
string | $debugHintsParameter | |
Definition at line 85 of file DebugHints.php.
103 $this->debugHintsWithParam = $debugHintsWithParam;
104 $this->debugHintsParameter = $debugHintsParameter;
◆ afterCreate()
Wrap template engine instance with the debugging hints decorator, depending of the store configuration
- Parameters
-
TemplateEngineFactory | $subject | |
TemplateEngineInterface | $invocationResult | |
- Returns
- TemplateEngineInterface @SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 116 of file DebugHints.php.
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;
◆ $debugHintsFactory
◆ $debugHintsPath
◆ $devHelper
◆ $scopeConfig
◆ $storeManager
◆ XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS
const XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS = 'dev/debug/template_hints_blocks' |
XPath of configuration of the debug block names
Definition at line 24 of file DebugHints.php.
The documentation for this class was generated from the following file:
- vendor/magento/module-developer/Model/TemplateEngine/Plugin/DebugHints.php