/** * Returns whether the page is a popup. * * @return bool */ public function isPopup() { if (null !== $this->popup) { return $this->popup; } return $this->parent && $this->parent->isPopup(); }