Log in
Interface

SitemapItemInterface

Magento\Sitemap\Model\SitemapItemInterface

What it does

This interface defines the contract for sitemap items in Magento 2's XML sitemap generation system.

Developers implement this interface when creating custom sitemap item types to ensure they provide all required sitemap data including URL, priority, change frequency, associated images, and last update timestamp.

It's used when extending sitemap functionality to include custom content types beyond the default products, categories, and CMS pages.

Public Methods

  • getUrl()
  • getPriority()
  • getChangeFrequency()
  • getImages()
  • getUpdatedAt()