protected function getPageResources(Page $page, Site $site)
    {
        $primaryDomainName = $site->getDomain()->getDomainName();
        $siteId = $site->getSiteId();
        $pageName = $page->getName();
        $pageType = $page->getPageType();

        $pagesResourceId = $this->resourceName->get(self::RESOURCE_SITES, $siteId, self::RESOURCE_PAGES);
        $pageResourceId = $this->resourceName->get(
            self::RESOURCE_SITES,
            $siteId,
            self::RESOURCE_PAGES,
            $pageType,
            $pageName
        );

        $return[$pageResourceId] = [
            'resourceId' => $pageResourceId,
            'parentResourceId' => $pagesResourceId,
            'name' => $primaryDomainName . ' - pages - ' . $pageName,
            'description' => "Resource for page '{$pageName}'" . " of type '{$pageType}' on site '{$primaryDomainName}'"
        ];

        $return[$pageResourceId] = array_merge(
            $this->resources[self::RESOURCE_PAGES],
            $return[$pageResourceId]
        );

        return $return;
    }
protected function getPageResources(Page $page, Site $site)
    {
        $primaryDomainName = $site->getDomain()->getDomainName();
        $siteId = $site->getSiteId();
        $pageName = $page->getName();
        $pageType = $page->getPageType();

        $pagesResourceId = $this->resourceName->get(self::RESOURCE_SITES, $siteId, self::RESOURCE_PAGES);
        $pageResourceId = $this->resourceName->get(
            self::RESOURCE_SITES,
            $siteId,
            self::RESOURCE_PAGES,
            $pageType,
            $pageName
        );

        $return[$pageResourceId] = [
            'resourceId' => $pageResourceId,
            'parentResourceId' => $pagesResourceId,
            'name' => $primaryDomainName . ' - pages - ' . $pageName,
            'description' => "Resource for page '{$pageName}'" . " of type '{$pageType}' on site '{$primaryDomainName}'"
        ];

        $return[$pageResourceId] = array_merge(
            $this->resources[self::RESOURCE_PAGES],
            $return[$pageResourceId]
        );

        return $return;
    }
protected function getPageResources ( Page $ page , Site $ site ) { $ primaryDomainName = $ site -> getDomain ( ) -> getDomainName ( ) ; $ siteId = $ site -> getSiteId ( ) ; $ pageName = $ page -> getName ( ) ; $ pageType = $ page -> getPageType ( ) ; $ pagesResourceId = $ this -> resourceName -> get ( self :: RESOURCE_SITES , $ siteId , self :: RESOURCE_PAGES ) ; $ pageResourceId = $ this -> resourceName -> get ( self :: RESOURCE_SITES , $ siteId , self :: RESOURCE_PAGES , $ pageType , $ pageName ) ; $ return [ $ pageResourceId ] = [ 'resourceId' => $ pageResourceId , 'parentResourceId' => $ pagesResourceId , 'name' => $ primaryDomainName . ' - pages - ' . $ pageName , 'description' => "Resource for page '{$pageName}'" . " of type '{$pageType}' on site '{$primaryDomainName}'" ] ; $ return [ $ pageResourceId ] = array_merge ( $ this -> resources [ self :: RESOURCE_PAGES ] , $ return [ $ pageResourceId ] ) ; return $ return ; }
Get all Page Resources

@param Page $page Rcm Page Entity
@param Site $site Rcm Site Entity

@return mixed
Get all Page Resources