72 switch ($currentElement->getName()) {
74 $this->helper->scheduleStructure(
77 $currentElement->getParent()
104 $containerName = $currentElement->getAttribute(
'name');
105 $elementData = $scheduledStructure->getStructureElementData($containerName);
107 if (isset($elementData[
'attributes'])) {
108 $keys = array_keys($elementData[
'attributes']);
109 foreach ($keys as $key) {
110 if (isset($currentElement[$key])) {
111 $elementData[
'attributes'][$key] = (string)$currentElement[$key];
115 $elementData[
'attributes'] = [
116 self::CONTAINER_OPT_HTML_TAG => (string)$currentElement[self::CONTAINER_OPT_HTML_TAG],
118 self::CONTAINER_OPT_HTML_CLASS => (string)$currentElement[self::CONTAINER_OPT_HTML_CLASS],
120 self::CONTAINER_OPT_DISPLAY => (string)$currentElement[self::CONTAINER_OPT_DISPLAY],
123 $scheduledStructure->setStructureElementData($containerName, $elementData);
140 $containerName = $currentElement->getAttribute(
'name');
141 $containerRemove = filter_var($currentElement->getAttribute(
'remove'), FILTER_VALIDATE_BOOLEAN);
142 if ($containerRemove) {
143 $scheduledStructure->setElementToRemoveList($containerName);
145 }
elseif ($currentElement->getAttribute(
'remove')) {
146 $scheduledStructure->unsetElementFromListToRemove($containerName);
const CONTAINER_OPT_HTML_TAG
elseif(isset( $params[ 'redirect_parent']))
__construct(Layout\ScheduledStructure\Helper $helper, Layout\ReaderPool $readerPool)
interpret(Context $readerContext, Layout\Element $currentElement)
const CONTAINER_OPT_DISPLAY
const CONTAINER_OPT_HTML_ID
const CONTAINER_OPT_LABEL
const CONTAINER_OPT_HTML_CLASS
containerReference(Layout\ScheduledStructure $scheduledStructure, Layout\Element $currentElement)
mergeContainerAttributes(Layout\ScheduledStructure $scheduledStructure, Layout\Element $currentElement)
const TYPE_REFERENCE_CONTAINER