public function Simplesitemap::removeCustomLinks in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 src/Simplesitemap.php \Drupal\simple_sitemap\Simplesitemap::removeCustomLinks()
Removes all custom paths from the sitemap settings.
Return value
$this
File
- src/
Simplesitemap.php, line 709
Class
- Simplesitemap
- Class Simplesitemap @package Drupal\simple_sitemap
Namespace
Drupal\simple_sitemapCode
public function removeCustomLinks() {
$this->configFactory
->getEditable('simple_sitemap.custom')
->set('links', [])
->save();
return $this;
}