You are here

public function SitemapGeneratorBase::setSitemapVariant in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator\SitemapGeneratorBase::setSitemapVariant()

Parameters

\Drupal\simple_sitemap\Entity\SimpleSitemapInterface $sitemap:

Return value

$this

Overrides SitemapGeneratorInterface::setSitemapVariant

File

src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php, line 85

Class

SitemapGeneratorBase
Class SitemapGeneratorBase

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator

Code

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