Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\View\LayoutInterface $layout, RequestInterface $request, ResponseInterface $response, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\View\Result\PageFactory $pageFactory, ActionFlag $actionFlag) | |
getPage () | |
getLayout () | |
loadLayout ($handles=null, $generateBlocks=true, $generateXml=true, $addActionHandles=true) | |
getDefaultLayoutHandle () | |
addActionLayoutHandles () | |
addPageLayoutHandles (array $parameters=[], $defaultHandle=null) | |
loadLayoutUpdates () | |
generateLayoutXml () | |
generateLayoutBlocks () | |
renderLayout ($output='') | |
setIsLayoutLoaded ($value) | |
isLayoutLoaded () | |
Protected Attributes | |
$_layout | |
$_configScope | |
$_eventManager | |
$page | |
$_actionFlag | |
$_response | |
$_request | |
$_isLayoutLoaded = false | |
__construct | ( | \Magento\Framework\View\LayoutInterface | $layout, |
RequestInterface | $request, | ||
ResponseInterface | $response, | ||
\Magento\Framework\Config\ScopeInterface | $configScope, | ||
\Magento\Framework\Event\ManagerInterface | $eventManager, | ||
\Magento\Framework\View\Result\PageFactory | $pageFactory, | ||
ActionFlag | $actionFlag | ||
) |
\Magento\Framework\View\LayoutInterface | $layout | |
RequestInterface | $request | |
ResponseInterface | $response | |
\Magento\Framework\Config\ScopeInterface | $configScope | |
\Magento\Framework\Event\ManagerInterface | $eventManager | |
\Magento\Framework\View\Result\PageFactory | $pageFactory | |
ActionFlag | $actionFlag |
Definition at line 59 of file View.php.
addActionLayoutHandles | ( | ) |
Add layout handle by full controller action name
Implements ViewInterface.
Definition at line 145 of file View.php.
addPageLayoutHandles | ( | array | $parameters = [] , |
$defaultHandle = null |
|||
) |
Add layout updates handles associated with the action page
array | null | $parameters | page parameters |
string | null | $defaultHandle |
Implements ViewInterface.
generateLayoutBlocks | ( | ) |
generateLayoutXml | ( | ) |
getDefaultLayoutHandle | ( | ) |
Retrieve the default layout handle name for the current action
Implements ViewInterface.
getLayout | ( | ) |
Retrieve current layout object
Implements ViewInterface.
getPage | ( | ) |
isLayoutLoaded | ( | ) |
Returns is layout loaded
Implements ViewInterface.
Definition at line 244 of file View.php.
loadLayout | ( | $handles = null , |
|
$generateBlocks = true , |
|||
$generateXml = true , |
|||
$addActionHandles = true |
|||
) |
{Load layout by handles(s)
string | null | bool | $handles | |
bool | $generateBlocks | |
bool | $generateXml | |
bool | $addActionHandles |
Implements ViewInterface.
Definition at line 100 of file View.php.
loadLayoutUpdates | ( | ) |
renderLayout | ( | $output = '' | ) |
Rendering layout
string | $output |
Implements ViewInterface.
Definition at line 202 of file View.php.
setIsLayoutLoaded | ( | $value | ) |