You are here

public function UrlGeneratorBase::setSitemapVariant 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::setSitemapVariant()

Parameters

\Drupal\simple_sitemap\Entity\SimpleSitemapInterface $sitemap_variant:

Return value

$this

Overrides UrlGeneratorInterface::setSitemapVariant

File

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

Class

UrlGeneratorBase
Class UrlGeneratorBase

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

public function setSitemapVariant(SimpleSitemapInterface $sitemap_variant) : UrlGeneratorInterface {
  $this->sitemapVariant = $sitemap_variant;
  return $this;
}