protected function pageResourceMapper($resourceId)
    {
        if (!$this->resourceName->isPagesResourceId($resourceId)) {
            return null;
        }

        $resources = explode('.', $resourceId);

        if (empty($resources[1])) {
            return null;
        }

        $siteResourceId = $this->resourceName->get(self::RESOURCE_SITES, $resources[1]);

        $return = [
            'resourceId' => $resourceId,
            'parentResourceId' => $siteResourceId,
        ];

        if ($this->resourceName->isPageResourceId($resourceId)) {
            $pagesResourceId = $this->resourceName->get(self::RESOURCE_SITES, $resources[1], self::RESOURCE_PAGES);
            $return['parentResourceId'] = $pagesResourceId;
        }

        return array_merge(
            $this->resources[self::RESOURCE_PAGES],
            $return
        );
    }
protected function pageResourceMapper($resourceId)
    {
        if (!$this->resourceName->isPagesResourceId($resourceId)) {
            return null;
        }

        $resources = explode('.', $resourceId);

        if (empty($resources[1])) {
            return null;
        }

        $siteResourceId = $this->resourceName->get(self::RESOURCE_SITES, $resources[1]);

        $return = [
            'resourceId' => $resourceId,
            'parentResourceId' => $siteResourceId,
        ];

        if ($this->resourceName->isPageResourceId($resourceId)) {
            $pagesResourceId = $this->resourceName->get(self::RESOURCE_SITES, $resources[1], self::RESOURCE_PAGES);
            $return['parentResourceId'] = $pagesResourceId;
        }

        return array_merge(
            $this->resources[self::RESOURCE_PAGES],
            $return
        );
    }
protected function pageResourceMapper ( $ resourceId ) { if ( ! $ this -> resourceName -> isPagesResourceId ( $ resourceId ) ) { return null ; } $ resources = explode ( '.' , $ resourceId ) ; if ( empty ( $ resources [ 1 ] ) ) { return null ; } $ siteResourceId = $ this -> resourceName -> get ( self :: RESOURCE_SITES , $ resources [ 1 ] ) ; $ return = [ 'resourceId' => $ resourceId , 'parentResourceId' => $ siteResourceId , ] ; if ( $ this -> resourceName -> isPageResourceId ( $ resourceId ) ) { $ pagesResourceId = $ this -> resourceName -> get ( self :: RESOURCE_SITES , $ resources [ 1 ] , self :: RESOURCE_PAGES ) ; $ return [ 'parentResourceId' ] = $ pagesResourceId ; } return array_merge ( $ this -> resources [ self :: RESOURCE_PAGES ] , $ return ) ; }
Page Resource Mapper

@param string $resourceId Resource Id to search

@return array|null
Page Resource Mapper