Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__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) | |
getLayout () | |
addDefaultHandle () | |
getDefaultLayoutHandle () | |
addHandle ($handleName) | |
addUpdate ($update) | |
renderResult (ResponseInterface $httpResponse) | |
![]() | |
setHttpResponseCode ($httpCode) | |
setHeader ($name, $value, $replace=false) | |
setStatusHeader ($httpCode, $version=null, $phrase=null) | |
renderResult (ResponseInterface $response) | |
Protected Member Functions | |
initLayoutBuilder () | |
render (HttpResponseInterface $response) | |
![]() | |
applyHttpHeaders (HttpResponseInterface $response) | |
render (HttpResponseInterface $response) | |
Protected Attributes | |
$layoutFactory | |
$layoutBuilderFactory | |
$layoutReaderPool | |
$layout | |
$translateInline | |
$eventManager | |
$request | |
![]() | |
$httpResponseCode | |
$headers = [] | |
$statusHeaderCode | |
$statusHeaderVersion | |
$statusHeaderPhrase | |
A generic layout response can be used for rendering any kind of layout So it comprises a response body from the layout elements it has and sets it to the HTTP response
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
@api
Definition at line 24 of file Layout.php.
__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 |
|||
) |
Constructor
View\Element\Template\Context | $context | |
View\LayoutFactory | $layoutFactory | |
View\Layout\ReaderPool | $layoutReaderPool | |
Framework\Translate\InlineInterface | $translateInline | |
View\Layout\BuilderFactory | $layoutBuilderFactory | |
View\Layout\GeneratorPool | $generatorPool | |
bool | $isIsolated |
Definition at line 72 of file Layout.php.
addDefaultHandle | ( | ) |
Definition at line 118 of file Layout.php.
addHandle | ( | $handleName | ) |
addUpdate | ( | $update | ) |
Add update to merge object
string | $update |
Definition at line 150 of file Layout.php.
getDefaultLayoutHandle | ( | ) |
Retrieve the default layout handle name for the current action
Definition at line 129 of file Layout.php.
getLayout | ( | ) |
Get layout instance for current page
Definition at line 110 of file Layout.php.
|
protected |
|
protected |
renderResult | ( | ResponseInterface | $httpResponse | ) |
Render current layout
HttpResponseInterface | ResponseInterface | $httpResponse |
Implements ResultInterface.
Definition at line 162 of file Layout.php.
|
protected |
Definition at line 54 of file Layout.php.
|
protected |
Definition at line 44 of file Layout.php.
|
protected |
Definition at line 34 of file Layout.php.
|
protected |
Definition at line 29 of file Layout.php.
|
protected |
Definition at line 39 of file Layout.php.
|
protected |
Definition at line 59 of file Layout.php.
|
protected |
Definition at line 49 of file Layout.php.