Log in
Model

Url

Magento\Catalog\Model\ResourceModel\Url

What it does

This resource model manages URL rewrite data for catalog products and categories in Magento 2.

Developers use it to retrieve store configurations, fetch category and product attributes needed for URL generation, and get URL rewrite information by product and store.

It's essential for handling catalog URL management, particularly during URL rewrite indexing and regeneration processes.

Public Methods

  • getStores()
  • _getProductAttribute()
  • getCategory()
  • getCategories()
  • getProduct()
  • getProductsByStore()
  • getRewriteByProductStore()
  • _resetState()