Skip to content

Commit 0922df2

Browse files
committed
MAGETWO-64616: [BACKPORT] Layout::renderResult() issue
1 parent 6db65b0 commit 0922df2

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,12 @@ public function renderResult(ResponseInterface $response)
160160
\Magento\Framework\Profiler::start('LAYOUT');
161161
\Magento\Framework\Profiler::start('layout_render');
162162

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)