Add query tag in EntityUrlGenerator::getDataSets

Created on 29 August 2025, 19 days ago

Problem/Motivation

We wanted to modify the entities returned in \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\EntityUrlGenerator, such as a field which says "exclude from sitemap. If the entity query had a tag, we could add this condition.

Steps to reproduce

Proposed resolution

          if ($bundle_settings['index']) {
            $query = $entityTypeStorage->getQuery();
            $query->addTag('simple_sitemap');

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024