protected function getPages(array $slugsArray = [])
    {
        /** @var Page[] $pages */
        $pages = $this->get('orbitale_cms.page_repository')
            ->findFrontPages($slugsArray, $this->request->getHost(), $this->request->getLocale())
        ;

        if (!count($pages) || (count($slugsArray) && count($pages) !== count($slugsArray))) {
            throw $this->createNotFoundException(count($slugsArray)
                ? 'Page not found'
                : 'No homepage has been configured. Please check your existing pages or create a homepage in your application.');
        }

        return $pages;
    }
protected function getPages(array $slugsArray = [])
    {
        /** @var Page[] $pages */
        $pages = $this->get('orbitale_cms.page_repository')
            ->findFrontPages($slugsArray, $this->request->getHost(), $this->request->getLocale())
        ;

        if (!count($pages) || (count($slugsArray) && count($pages) !== count($slugsArray))) {
            throw $this->createNotFoundException(count($slugsArray)
                ? 'Page not found'
                : 'No homepage has been configured. Please check your existing pages or create a homepage in your application.');
        }

        return $pages;
    }
protected function getPages ( array $ slugsArray = [ ] ) { /** @var Page[] $pages */ $ pages = $ this -> get ( 'orbitale_cms.page_repository' ) -> findFrontPages ( $ slugsArray , $ this -> request -> getHost ( ) , $ this -> request -> getLocale ( ) ) ; if ( ! count ( $ pages ) || ( count ( $ slugsArray ) && count ( $ pages ) !== count ( $ slugsArray ) ) ) { throw $ this -> createNotFoundException ( count ( $ slugsArray ) ? 'Page not found' : 'No homepage has been configured. Please check your existing pages or create a homepage in your application.' ) ; } return $ pages ; }
Retrieves the page list based on slugs.
Also checks the hierarchy of the different pages.

@param array $slugsArray

@return Page[]
Retrieves the page list based on slugs . Also checks the hierarchy of the different pages .