Log in
Model

Product

Magento\Sitemap\Model\ItemProvider\Product

What it does

This class provides product data for XML sitemap generation in Magento 2.

It retrieves all products for a specific store, formats them as sitemap items with URLs, update dates, images, priority, and change frequency settings.

Developers use this class when customizing how products appear in the sitemap or when creating custom sitemap generation logic.

Public Methods

  • getItems()