Url
Magento\Catalog\Model\ResourceModel\Url
What it does
This resource model handles database operations for catalog URL rewrites in Magento 2.
Developers use this class to retrieve product and category data needed for generating SEO-friendly URLs, fetch existing URL rewrites, and manage the relationship between products, categories, and their URL paths across different stores.
It's primarily used by the URL rewrite generation and indexing processes.
Public Methods
- getStores()
- _getProductAttribute()
- getCategory()
- getCategories()
- getProduct()
- getProductsByStore()
- getRewriteByProductStore()
- _resetState()