Skip to content

Commit 4ba8b74

Browse files
author
Hayder Sharhan
committed
Merge commit 'refs/pull/3907/head' of https://github.com/magento/magento2 into MAGETWO-54160
2 parents 2d0d716 + 02a959d commit 4ba8b74

File tree

1 file changed

+4
-3
lines changed
  • lib/internal/Magento/Framework/View/Result

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/View/Result/Layout.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,13 @@ public function renderResult(ResponseInterface $response)
159159
{
160160
\Magento\Framework\Profiler::start('LAYOUT');
161161
\Magento\Framework\Profiler::start('layout_render');
162-
162+
163+
$this->eventManager->dispatch('layout_render_before');
164+
$this->eventManager->dispatch('layout_render_before_' . $this->request->getFullActionName());
165+
163166
$this->applyHttpHeaders($response);
164167
$this->render($response);
165168

166-
$this->eventManager->dispatch('layout_render_before');
167-
$this->eventManager->dispatch('layout_render_before_' . $this->request->getFullActionName());
168169
\Magento\Framework\Profiler::stop('layout_render');
169170
\Magento\Framework\Profiler::stop('LAYOUT');
170171
return $this;

0 commit comments

Comments
 (0)