Log in
Model

GetPageByIdentifier

Magento\Cms\Model\GetPageByIdentifier

What it does

This class retrieves a CMS page by its URL identifier and store ID.

Developers use this service class when they need to programmatically load a specific CMS page, such as fetching page content for display or validation purposes.

It throws an exception if the page doesn't exist, making it useful for ensuring page availability before processing.

Public Methods

  • execute()