Log in
Interface

GetPageByIdentifierInterface

Magento\Cms\Api\GetPageByIdentifierInterface

What it does

This interface defines a contract for retrieving CMS page data using a page identifier and store ID.

Developers use this when they need to programmatically fetch a specific CMS page by its URL key or identifier, such as when displaying custom page content or checking if a page exists before performing operations.

It throws an exception if the page is not found, making it reliable for page lookup operations.

Public Methods

  • execute()