Log in
Interface

PageInterface

Magento\Cms\Api\Data\PageInterface

What it does

This interface defines the contract for CMS Page objects in Magento 2.

Developers use this interface when working with CMS pages programmatically - whether creating, updating, or retrieving page data such as title, content, meta information, layout settings, and activation status.

It provides getter and setter methods for all page attributes, ensuring consistent data handling across the CMS module.

Public Methods

  • getId()
  • getIdentifier()
  • getTitle()
  • getPageLayout()
  • getMetaTitle()
  • getMetaKeywords()
  • getMetaDescription()
  • getContentHeading()
  • getContent()
  • getCreationTime()
  • getUpdateTime()
  • getSortOrder()
  • getLayoutUpdateXml()
  • getCustomTheme()
  • getCustomRootTemplate()
  • getCustomLayoutUpdateXml()
  • getCustomThemeFrom()
  • getCustomThemeTo()
  • isActive()
  • setId()
  • setIdentifier()
  • setTitle()
  • setPageLayout()
  • setMetaTitle()
  • setMetaKeywords()
  • setMetaDescription()
  • setContentHeading()
  • setContent()
  • setCreationTime()
  • setUpdateTime()
  • setSortOrder()
  • setLayoutUpdateXml()
  • setCustomTheme()
  • setCustomRootTemplate()
  • setCustomLayoutUpdateXml()
  • setCustomThemeFrom()
  • setCustomThemeTo()
  • setIsActive()