Log in
Interface

StorageInterface

Magento\UrlRewrite\Model\StorageInterface

What it does

This interface defines the contract for URL rewrite storage operations in Magento 2.

It combines URL finding and persistence capabilities by extending both UrlFinderInterface and UrlPersistInterface, allowing developers to implement classes that can both retrieve and save URL rewrites.

Developers use this when creating custom storage mechanisms for URL rewrites or when type-hinting dependencies that need complete URL rewrite storage functionality.