Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\View\Element\BlockFactory $blockFactory, \Magento\Framework\Data\Argument\InterpreterInterface $argumentInterpreter, \Magento\Framework\Event\ManagerInterface $eventManager, \Psr\Log\LoggerInterface $logger, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\App\ScopeResolverInterface $scopeResolver, \Magento\Framework\View\Element\ExceptionHandlerBlockFactory $exceptionHandlerBlockFactory, State $appState, $defaultClass=Template::class) | |
getType () | |
createBlock ($block, $name, array $arguments=[]) | |
![]() | |
process (Reader\Context $readerContext, Generator\Context $generatorContext) | |
Data Fields | |
const | TYPE = 'block' |
Protected Member Functions | |
handleRenderException (\Exception $cause) | |
generateBlock (Layout\ScheduledStructure $scheduledStructure, Layout\Data\Structure $structure, $elementName) | |
getBlockInstance ($block, array $arguments=[]) | |
generateAction ($block, $methodName, $actionArguments) | |
evaluateArguments (array $arguments) | |
Protected Attributes | |
$blockFactory | |
$argumentInterpreter | |
$eventManager | |
$logger | |
$scopeConfig | |
$scopeResolver | |
$appState | |
$exceptionHandlerBlockFactory | |
Class Block @SuppressWarnings(PHPMD.CouplingBetweenObjects)
__construct | ( | \Magento\Framework\View\Element\BlockFactory | $blockFactory, |
\Magento\Framework\Data\Argument\InterpreterInterface | $argumentInterpreter, | ||
\Magento\Framework\Event\ManagerInterface | $eventManager, | ||
\Psr\Log\LoggerInterface | $logger, | ||
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
\Magento\Framework\App\ScopeResolverInterface | $scopeResolver, | ||
\Magento\Framework\View\Element\ExceptionHandlerBlockFactory | $exceptionHandlerBlockFactory, | ||
State | $appState, | ||
$defaultClass = Template::class |
|||
) |
\Magento\Framework\View\Element\BlockFactory | $blockFactory | |
\Magento\Framework\Data\Argument\InterpreterInterface | $argumentInterpreter | |
\Magento\Framework\Event\ManagerInterface | $eventManager | |
\Psr\Log\LoggerInterface | $logger | |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
\Magento\Framework\App\ScopeResolverInterface | $scopeResolver | |
\Magento\Framework\View\Element\ExceptionHandlerBlockFactory | $exceptionHandlerBlockFactory | |
State | $appState | |
string | $defaultClass |
Definition at line 82 of file Block.php.
createBlock | ( | $block, | |
$name, | |||
array | $arguments = [] |
||
) |
Create block instance
string | \Magento\Framework\View\Element\AbstractBlock | $block | |
string | $name | |
array | $arguments |
Definition at line 247 of file Block.php.
|
protected |
|
protected |
Run action defined in layout update
\Magento\Framework\View\Element\AbstractBlock | $block | |
string | $methodName | |
array | $actionArguments |
Definition at line 294 of file Block.php.
|
protected |
Create block and set related data
\Magento\Framework\View\Layout\ScheduledStructure | $scheduledStructure | |
\Magento\Framework\View\Layout\Data\Structure | $structure | |
string | $elementName |
Definition at line 208 of file Block.php.
|
protected |
getType | ( | ) |
{Return type of generator
Implements GeneratorInterface.
Definition at line 109 of file Block.php.
|
protected |