Closed
Description
PR #9970 was already an improvement to the sitemap for easier adding of additional items.
@antonkril suggested to refactor the improved behaviour even more:
Expected result
Better approach in this case would be to introduce the reversed extension point: some kind of $ItemResolver dependency that would be called by sitemap (with sitemap id argument) to load custom sitemap items.
This dependency could be implemented as a composite, or just pluginized by third-party developers to add new items to the custom list.