Definition at line 10 of file Container.php.
◆ generateContainer()
generateContainer |
( |
Layout\Data\Structure |
$structure, |
|
|
|
$elementName, |
|
|
|
$options |
|
) |
| |
Set container-specific data to structure element
- Parameters
-
\Magento\Framework\View\Layout\Data\Structure | $structure | |
string | $elementName | |
array | $options | |
- Returns
- void
Definition at line 83 of file Container.php.
validateOptions($options)
◆ getType()
◆ process()
process |
( |
Layout\Reader\Context |
$readerContext, |
|
|
Layout\Generator\Context |
$generatorContext |
|
) |
| |
Process container elements
- Parameters
-
\Magento\Framework\View\Layout\Reader\Context | $readerContext | |
Context | $generatorContext | |
- Returns
- $this
Definition at line 61 of file Container.php.
63 $structure = $generatorContext->getStructure();
67 if (
$type === self::TYPE) {
generateContainer(Layout\Data\Structure $structure, $elementName, $options)
◆ validateOptions()
validateOptions |
( |
|
$options | ) |
|
|
protected |
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 102 of file Container.php.
110 throw new \Magento\Framework\Exception\LocalizedException(
112 'Html tag "%1" is forbidden for usage in containers. Consider to use one of the allowed: %2.',
124 throw new \Magento\Framework\Exception\LocalizedException(
125 new \
Magento\Framework\Phrase(
'HTML ID or class will not have effect, if HTML tag is not specified.')
const CONTAINER_OPT_HTML_ID
const CONTAINER_OPT_HTML_TAG
const CONTAINER_OPT_HTML_CLASS
◆ $allowedTags
Initial value:= [
'aside',
'dd',
'div',
'dl',
'fieldset',
'main',
'nav',
'header',
'footer',
'ol',
'p',
'section',
'table',
'tfoot',
'ul',
]
Definition at line 26 of file Container.php.
◆ CONTAINER_OPT_HTML_CLASS
const CONTAINER_OPT_HTML_CLASS = 'htmlClass' |
◆ CONTAINER_OPT_HTML_ID
const CONTAINER_OPT_HTML_ID = 'htmlId' |
◆ CONTAINER_OPT_HTML_TAG
const CONTAINER_OPT_HTML_TAG = 'htmlTag' |
#+ Names of container options in layout
Definition at line 15 of file Container.php.
◆ CONTAINER_OPT_LABEL
const CONTAINER_OPT_LABEL = 'label' |
◆ TYPE
The documentation for this class was generated from the following file: