public function getPageByName(
        SiteEntity $site,
        $pageName,
        $pageType = PageTypes::NORMAL
    ) {
        $results = $this->getPagesByName(
            $site,
            $pageName,
            $pageType
        );

        if (empty($results)) {
            return null;
        }

        return $results[0];
    }
public function getPageByName(
        SiteEntity $site,
        $pageName,
        $pageType = PageTypes::NORMAL
    ) {
        $results = $this->getPagesByName(
            $site,
            $pageName,
            $pageType
        );

        if (empty($results)) {
            return null;
        }

        return $results[0];
    }
public function getPageByName ( SiteEntity $ site , $ pageName , $ pageType = PageTypes :: NORMAL ) { $ results = $ this -> getPagesByName ( $ site , $ pageName , $ pageType ) ; if ( empty ( $ results ) ) { return null ; } return $ results [ 0 ] ; }
Get a page entity by name

@param SiteEntity $site Site to lookup
@param string $pageName Page Name
@param string $pageType Page Type

@return null|PageEntity
Get a page entity by name