Log in
Interface

PageInterface

Magento\Cms\Api\Data\PageInterface

What it does

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

Developers use it to interact with CMS page properties like title, content, meta tags, layout settings, and active status through standardized getter and setter methods.

It's essential when creating, retrieving, or modifying CMS pages programmatically via the API or repository patterns.

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()