You are here

protected function UrlGeneratorBase::addUrl in Simple XML sitemap 8.2

Parameters

array $path_data:

1 call to UrlGeneratorBase::addUrl()
UrlGeneratorBase::generate in src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php
Called by batch.

File

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

Class

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

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

protected function addUrl(array $path_data) {
  if ($path_data['url'] instanceof Url) {
    $url_object = $path_data['url'];
    unset($path_data['url']);
    $this
      ->addUrlVariants($path_data, $url_object);
  }
  else {
    $this
      ->addBatchResult($path_data);
  }
}