Bundle/PageBundle/Entity/Traits/WebViewTrait.php
public function isPublished()
    {
        if (
            $this->getStatus() === PageStatus::PUBLISHED ||
            ($this->getStatus() === PageStatus::SCHEDULED &&
            $this->getPublishedAt() < new \DateTime())
            ) {
            return true;
        } else {
            return false;
        }
    }
public function isPublished()
    {
        if (
            $this->getStatus() === PageStatus::PUBLISHED ||
            ($this->getStatus() === PageStatus::SCHEDULED &&
            $this->getPublishedAt() < new \DateTime())
            ) {
            return true;
        } else {
            return false;
        }
    }
public function isPublished ( ) { if ( $ this -> getStatus ( ) === PageStatus :: PUBLISHED || ( $ this -> getStatus ( ) === PageStatus :: SCHEDULED && $ this -> getPublishedAt ( ) < new \ DateTime ( ) ) ) { return true ; } else { return false ; } }
Is this page published.

@return bool
Is this page published .