Skip to content
Snippets Groups Projects
Commit 159d01bd authored by Andrey Tymchuk's avatar Andrey Tymchuk Committed by A.Tymchuk
Browse files

Issue #3129303 by andriy khomych, hideaway, gbyte, bvoynick, berdir,...

Issue #3129303 by andriy khomych, hideaway, gbyte, bvoynick, berdir, brockfanning, walkingdexter: Allow to alter entity url generator query
parent a5a8ae53
No related branches found
No related tags found
No related merge requests found
Pipeline #379824 passed
......@@ -177,6 +177,11 @@ class EntityUrlGenerator extends EntityUrlGeneratorBase {
// See https://www.drupal.org/project/simple_sitemap/issues/3102450.
$query->accessCheck(FALSE);
// Add tag and metadata to the query.
$query->addTag('simple_sitemap')
->addMetaData('sitemap', $this->sitemap)
->addMetaData('bundle', $bundle_name);
$data_set = [
'entity_type' => $entity_type_name,
'id' => [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment