75 View\
Layout\ReaderPool $layoutReaderPool,
76 Framework\
Translate\InlineInterface $translateInline,
77 View\
Layout\BuilderFactory $layoutBuilderFactory,
81 $this->layoutFactory = $layoutFactory;
82 $this->layoutBuilderFactory = $layoutBuilderFactory;
83 $this->layoutReaderPool = $layoutReaderPool;
84 $this->eventManager = $context->getEventManager();
85 $this->request = $context->getRequest();
86 $this->translateInline = $translateInline;
88 $this->layout = $isIsolated
89 ? $this->layoutFactory->create([
'reader' => $this->layoutReaderPool,
'generatorPool' =>
$generatorPool])
90 : $context->getLayout();
102 $this->layoutBuilderFactory->create(View\
Layout\BuilderFactory::TYPE_LAYOUT, [
'layout' => $this->layout]);
112 return $this->layout;
131 return strtolower($this->request->getFullActionName());
140 $this->
getLayout()->getUpdate()->addHandle($handleName);
152 $this->
getLayout()->getUpdate()->addUpdate($update);
164 \Magento\Framework\Profiler::start(
'LAYOUT');
165 \Magento\Framework\Profiler::start(
'layout_render');
167 $this->eventManager->dispatch(
'layout_render_before');
168 $this->eventManager->dispatch(
'layout_render_before_' . $this->request->getFullActionName());
171 $this->
render($httpResponse);
173 \Magento\Framework\Profiler::stop(
'layout_render');
174 \Magento\Framework\Profiler::stop(
'LAYOUT');
183 $output = $this->layout->getOutput();
184 $this->translateInline->processResponseBody(
$output);
__construct(View\Element\Template\Context $context, View\LayoutFactory $layoutFactory, View\Layout\ReaderPool $layoutReaderPool, Framework\Translate\InlineInterface $translateInline, View\Layout\BuilderFactory $layoutBuilderFactory, View\Layout\GeneratorPool $generatorPool, $isIsolated=false)
render(HttpResponseInterface $response)
renderResult(ResponseInterface $httpResponse)
applyHttpHeaders(HttpResponseInterface $response)