Log in
Model

Composite

Magento\Sitemap\Model\ItemProvider\Composite

What it does

This class implements the Composite design pattern to aggregate sitemap items from multiple item providers.

Developers use this to collect all sitemap entries (products, categories, CMS pages, etc.) from various sources into a single unified collection for sitemap generation.

It's the central coordinator that calls all registered item providers and combines their results.

Public Methods

  • getItems()