protected function ViewsUrlGenerator::processSegment in Simple XML sitemap (Views integration) 8
File
- src/
Plugin/ simple_sitemap/ UrlGenerator/ ViewsUrlGenerator.php, line 258 - Contains Views URL generator.
Class
- ViewsUrlGenerator
- Views URL generator plugin.
Namespace
Drupal\simple_sitemap_views\Plugin\simple_sitemap\UrlGeneratorCode
protected function processSegment() {
// Delete records about sets of arguments that are not added to the sitemap.
if (!empty($this->indexesToDelete)) {
$condition = new Condition('AND');
$condition
->condition('id', $this->indexesToDelete, 'IN');
$this->simpleSitemapViews
->removeArgumentsFromIndex($condition);
$this->indexesToDelete = [];
}
parent::processSegment();
}