public function isValid($value)
    {
        $this->setValue($value);

        if (!$this->layoutManager->isLayoutValid($this->currentSite, $value)) {
            $this->error(self::MAIN_LAYOUT);

            return false;
        }

        return true;
    }
public function isValid($value)
    {
        $this->setValue($value);

        if (!$this->layoutManager->isLayoutValid($this->currentSite, $value)) {
            $this->error(self::MAIN_LAYOUT);

            return false;
        }

        return true;
    }
public function isValid ( $ value ) { $ this -> setValue ( $ value ) ; if ( ! $ this -> layoutManager -> isLayoutValid ( $ this -> currentSite , $ value ) ) { $ this -> error ( self :: MAIN_LAYOUT ) ; return false ; } return true ; }
Is the layout valid?

@param string $value Page to validate

@return bool
Is the layout valid?