Log in
Collection

UrlRewriteCollection

Magento\UrlRewrite\Model\ResourceModel\UrlRewriteCollection

What it does

This collection class is used to retrieve and manipulate sets of URL rewrite records from the database.

Developers use it to query URL rewrites with built-in filtering capabilities, particularly when needing to fetch URL rewrites for specific store views, which is essential for multi-store Magento installations where different stores may have different URL structures.

Public Methods

  • addStoreFilter()