src/Model/Page.php
public function getLayoutBlock($zone = null)
    {
        if (!is_null($zone)) {
            $layoutBlocks = $this->layoutBlock->filter(
                function ($layoutBlock) use ($zone) {
                    return $layoutBlock->getZone() == $zone && $layoutBlock->isActive();
                }
            );

            return array_merge($layoutBlocks->toArray());
        }

        return $this->layoutBlock;
    }
public function getLayoutBlock($zone = null)
    {
        if (!is_null($zone)) {
            $layoutBlocks = $this->layoutBlock->filter(
                function ($layoutBlock) use ($zone) {
                    return $layoutBlock->getZone() == $zone && $layoutBlock->isActive();
                }
            );

            return array_merge($layoutBlocks->toArray());
        }

        return $this->layoutBlock;
    }
public function getLayoutBlock ( $ zone = null ) { if ( ! is_null ( $ zone ) ) { $ layoutBlocks = $ this -> layoutBlock -> filter ( function ( $ layoutBlock ) use ( $ zone ) { return $ layoutBlock -> getZone ( ) == $ zone && $ layoutBlock -> isActive ( ) ; } ) ; return array_merge ( $ layoutBlocks -> toArray ( ) ) ; } return $ this -> layoutBlock ; }
Get menuItem.

@param null $zone

@return \Doctrine\Common\Collections\ArrayCollection|\Doctrine\Common\Collections\Collection
Get menuItem .