Clean up the Vocabulary plugin

Created on 14 August 2025, about 1 month ago

Problem/Motivation

The Sitemap plugin at src/Plugin/Sitemap/Vocabulary.php is convoluted. The logic for outputting level-1 terms is totally different from the behavior for outputting level-2+ terms. This makes it error-prone (e.g.: 🐛 Vocabulary plugin stops outputting items in complex hierarchical vocab Active ), and hard-to-follow. There are also several @todos left in the code.

Proposed resolution

Refactor the code.

Remaining tasks

  1. Write a patch
  2. Add additional tests if needed
  3. Review and feedback
  4. RTBC and feedback
  5. Commit
  6. Release

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada mparker17 UTC-4

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

Comments & Activities

Production build 0.71.5 2024