src/Route/CmsPageRouter.php
protected function getPageByPageAlias($alias)
    {
        $site = $this->siteSelector->retrieve();
        $page = $this->cmsSelector->retrieve()->getPageByPageAlias($site, $alias);

        return $page;
    }
protected function getPageByPageAlias($alias)
    {
        $site = $this->siteSelector->retrieve();
        $page = $this->cmsSelector->retrieve()->getPageByPageAlias($site, $alias);

        return $page;
    }
protected function getPageByPageAlias ( $ alias ) { $ site = $ this -> siteSelector -> retrieve ( ) ; $ page = $ this -> cmsSelector -> retrieve ( ) -> getPageByPageAlias ( $ site , $ alias ) ; return $ page ; }
Retrieves a page object from a page alias.

@param string $alias

@throws PageNotFoundException

@return \Sonata\PageBundle\Model\PageInterface|null
Retrieves a page object from a page alias .