original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Retrieves the page list based on slugs.
  Also checks the hierarchy of the different pages.
  
  @param array $slugsArray
  
  @return Page[]
docstring_tokens: Retrieves the page list based on slugs . Also checks the hierarchy of the different pages .