You are here

public function ArbitraryUrlGenerator::getDataSets in Simple XML sitemap 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/simple_sitemap/UrlGenerator/ArbitraryUrlGenerator.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\ArbitraryUrlGenerator::getDataSets()

@inheritdoc

Overrides UrlGeneratorBase::getDataSets

File

src/Plugin/simple_sitemap/UrlGenerator/ArbitraryUrlGenerator.php, line 91

Class

ArbitraryUrlGenerator
Class ArbitraryUrlGenerator @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

public function getDataSets() {
  $arbitrary_links = [];
  $this->moduleHandler
    ->alter('simple_sitemap_arbitrary_links', $arbitrary_links);
  return array_values($arbitrary_links);
}