/** * Is the layout valid? * * @param string $value Page to validate * * @return bool */ public function isValid($value) { $this->setValue($value); if (!$this->layoutManager->isLayoutValid($this->currentSite, $value)) { $this->error(self::MAIN_LAYOUT); return false; } return true; }