You are here

protected function EntityUrlGenerator::processDataSet in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGenerator.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\EntityUrlGenerator::processDataSet()
  2. 8.2 src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGenerator.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\EntityUrlGenerator::processDataSet()

@inheritdoc

Overrides UrlGeneratorBase::processDataSet

1 call to EntityUrlGenerator::processDataSet()
EntityUrlGenerator::generate in src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGenerator.php
@inheritdoc

File

src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGenerator.php, line 195

Class

EntityUrlGenerator
Class EntityUrlGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

protected function processDataSet($data_set) : array {
  foreach ($this->entityTypeManager
    ->getStorage($data_set['entity_type'])
    ->loadMultiple((array) $data_set['id']) as $entity) {
    try {
      $paths[] = $this
        ->processEntity($entity);
    } catch (SkipElementException $e) {
      continue;
    }
  }
  return $paths ?? [];
}