/** * Returns whether tha page has layout. * * @return bool */ public function hasLayout() { return $this->hasLayout && (!$this->parent || $this->parent->hasLayout()); }