Sulu\Bundle\WebsiteBundle\Sitemap\SitemapProviderPoolInterface::getIndex PHP Method

getIndex() public method

Returns list of available sitemaps.
public getIndex ( ) : Sitemap[]
return Sitemap[]
    public function getIndex();

Usage Example

Exemplo n.º 1
0
 /**
  * Returns true if a index exists.
  *
  * @return bool
  */
 private function needsIndex()
 {
     return 1 < count($this->sitemapProviderPool->getProviders()) || 1 < array_reduce($this->sitemapProviderPool->getIndex(), function ($v1, Sitemap $v2) {
         return $v1 + $v2->getMaxPage();
     });
 }