You are here

public function UrlGeneratorBase::generate in Simple XML sitemap 4.x

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

@todo catch SkipElementException here and children.

Parameters

$data_set:

Return value

array

Overrides UrlGeneratorInterface::generate

1 method overrides UrlGeneratorBase::generate()
EntityUrlGeneratorBase::generate in src/Plugin/simple_sitemap/UrlGenerator/EntityUrlGeneratorBase.php

File

src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php, line 104

Class

UrlGeneratorBase
Class UrlGeneratorBase

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

public function generate($data_set) : array {
  try {
    return [
      $this
        ->processDataSet($data_set),
    ];
  } catch (SkipElementException $e) {
    return [];
  }
}