Log in

UrlRewrite Module

CompositeUrlFinder

Model

This class acts as a composite pattern implementation that delegates URL rewrite lookups to multiple child URL finder classes. Developers use this whe...

Exception\UrlAlreadyExistsException

Model

This exception is thrown when attempting to create a URL rewrite that already exists in the database for a specific store. Developers catch this excep...

MergeDataProvider

Model

This class serves as a container for URL rewrite data, automatically removing duplicates based on a combination of request path and store ID. Develope...

Model\Message\UrlRewriteExceptionMessageFactory

Factory

This factory creates user-friendly error messages specifically for URL rewrite exceptions in Magento 2. When a UrlAlreadyExistsException occurs (dupli...

Model\ResourceModel\UrlRewriteCollection

Collection

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 b...

Model\StorageInterface

Interface

This interface defines the contract for URL rewrite storage operations in Magento 2. It combines URL finding and persistence capabilities by extending...

Model\UrlFinderInterface

Interface

This interface defines methods for finding URL rewrites in Magento 2. Developers use it to locate URL rewrite entries by specific criteria, either ret...

Model\UrlPersistInterface

Interface

This interface defines the contract for persisting URL rewrites in Magento 2. Developers use implementations of this interface to save new URL rewrite...

OptionProvider

Model

This class provides redirect type options for URL rewrites in Magento 2. Developers use it to populate dropdown menus in admin forms where users need...

ResourceModel\UrlRewrite

Model

This resource model handles database operations for URL rewrites in Magento 2. Developers use this class when they need to persist or retrieve URL rew...

Storage\AbstractStorage

Model

This abstract base class provides the foundation for URL rewrite storage implementations in Magento 2. Developers extend this class to create custom s...

Storage\DbStorage

Model

This class manages database operations for URL rewrites in Magento 2, handling storage, retrieval, and deletion of URL rewrite records. Developers use...

StoreSwitcher\RewriteUrl

Model

This class handles URL rewriting when customers switch between different store views in a multi-store Magento installation. It finds the equivalent UR...

UrlRewrite

Model

This model class manages URL rewrites in Magento 2, handling the storage and manipulation of URL rewrite data including request paths, target paths, a...

UrlRewrite

Helper

This helper class validates URL rewrite request paths and suffixes in Magento 2. Developers use it to ensure URL rewrites don't contain invalid charac...