You are here

public function Simplesitemap::removeSitemap in Simple XML sitemap 8.3

Removes sitemap instances for the currently set variants.

Return value

$this

Throws

\Drupal\Component\Plugin\Exception\PluginException

File

src/Simplesitemap.php, line 326

Class

Simplesitemap
Class Simplesitemap @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

public function removeSitemap() {
  $this->manager
    ->removeSitemap($this
    ->getVariants(FALSE));
  return $this;
}