Log in
Model

CmsPageUrlRewriteGenerator

Magento\CmsUrlRewrite\Model\CmsPageUrlRewriteGenerator

What it does

This class generates URL rewrites for CMS pages in Magento 2, creating SEO-friendly URLs that map page identifiers to their actual paths.

Developers use this when CMS pages are created or updated to ensure proper URL routing and store-specific URL generation.

It handles both global store assignments and specific store assignments for CMS pages.

Public Methods

  • generate()