69 public function prepare()
71 switch ($this->getName()) {
92 foreach ($this as $child) {
106 $tagName = (string)$this->getName();
107 $isThisBlock = empty($this[
'name']) || !in_array(
109 [self::TYPE_BLOCK, self::TYPE_REFERENCE_BLOCK]
115 return (
string)$this[
'name'];
127 $tagName = $this->getName();
128 $isThisContainer = !in_array(
130 [self::TYPE_BLOCK, self::TYPE_REFERENCE_BLOCK, self::TYPE_CONTAINER, self::TYPE_REFERENCE_CONTAINER]
133 if ($isThisContainer) {
164 if (isset($parent[
'name']) && !isset($this[
'parent'])) {
165 $this->addAttribute(
'parent', (
string)$parent[
'name']);
189 $this->addAttribute(
'block', (
string)$parent[
'name']);
211 return !(bool)count($this->xpath(
'//' . self::TYPE_BLOCK .
'[@cacheable="false"]'));
const CONTAINER_OPT_HTML_ID
const TYPE_REFERENCE_CONTAINER
elseif(isset( $params[ 'redirect_parent']))
const CONTAINER_OPT_HTML_TAG
const TYPE_REFERENCE_BLOCK
const CONTAINER_OPT_HTML_CLASS
const CONTAINER_OPT_LABEL