Interface
UrlPersistInterface
Magento\UrlRewrite\Model\UrlPersistInterface
What it does
This interface defines the contract for persisting URL rewrites in Magento 2.
Developers use implementations of this interface to save new URL rewrites (replacing existing ones if needed) or delete URL rewrites based on specific criteria.
It's commonly used when managing product, category, or CMS page URLs programmatically.
Public Methods
- replace()
- deleteByData()