51 $this->layout->setBuilder($this);
61 if (!$this->isBuilt) {
62 $this->isBuilt =
true;
77 Profiler::start(
'LAYOUT');
79 $this->eventManager->dispatch(
81 [
'full_action_name' => $this->request->getFullActionName(),
'layout' =>
$this->layout]
83 Profiler::start(
'layout_load');
86 $this->layout->getUpdate()->load();
88 Profiler::stop(
'layout_load');
89 Profiler::stop(
'LAYOUT');
100 Profiler::start(
'LAYOUT');
101 Profiler::start(
'layout_generate_xml');
104 $this->layout->generateXml();
106 Profiler::stop(
'layout_generate_xml');
107 Profiler::stop(
'LAYOUT');
120 Profiler::start(
'LAYOUT');
122 $this->eventManager->dispatch(
123 'layout_generate_blocks_before',
124 [
'full_action_name' => $this->request->getFullActionName(),
'layout' =>
$this->layout]
126 Profiler::start(
'layout_generate_blocks');
129 $this->layout->generateElements();
131 Profiler::stop(
'layout_generate_blocks');
132 $this->eventManager->dispatch(
133 'layout_generate_blocks_after',
134 [
'full_action_name' => $this->request->getFullActionName(),
'layout' =>
$this->layout]
136 Profiler::stop(
'LAYOUT');
__construct(View\LayoutInterface $layout, App\Request\Http $request, Event\ManagerInterface $eventManager)