You are here

protected function SimpleSitemapStorage::doLoadMultiple in Simple XML sitemap 4.x

Loads all sitemaps, sorted by their weight.

Overrides ConfigEntityStorage::doLoadMultiple

File

src/Entity/SimpleSitemapStorage.php, line 100

Class

SimpleSitemapStorage

Namespace

Drupal\simple_sitemap\Entity

Code

protected function doLoadMultiple(?array $ids = NULL) : array {
  $sitemaps = parent::doLoadMultiple($ids);
  uasort($sitemaps, [
    SimpleSitemap::class,
    'sort',
  ]);
  return $sitemaps;
}