public function getSitePage(
        SiteEntity $site,
        $pageId
    ) {
        try {
            /** @var \Rcm\Entity\Page $page */
            $page = $this->findOneBy(
                [
                    'site' => $site,
                    'pageId' => $pageId
                ]
            );
        } catch (\Exception $e) {
            $page = null;
        }

        return $page;
    }
public function getSitePage(
        SiteEntity $site,
        $pageId
    ) {
        try {
            /** @var \Rcm\Entity\Page $page */
            $page = $this->findOneBy(
                [
                    'site' => $site,
                    'pageId' => $pageId
                ]
            );
        } catch (\Exception $e) {
            $page = null;
        }

        return $page;
    }
public function getSitePage ( SiteEntity $ site , $ pageId ) { try { /** @var \Rcm\Entity\Page $page */ $ page = $ this -> findOneBy ( [ 'site' => $ site , 'pageId' => $ pageId ] ) ; } catch ( \ Exception $ e ) { $ page = null ; } return $ page ; }
get Site Page

@param SiteEntity $site
@param int $pageId

@return \Rcm\Entity\Page|null
get Site Page