Skip to content

Commit b2c4205

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-64616' into 2.1-develop-pr54
2 parents eab571a + 0922df2 commit b2c4205

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)