Log in
Model

Page

Magento\Cms\Model\Page

What it does

This is the main CMS Page model class that represents a content page in Magento 2.

Developers use this class to load, save, and manage CMS pages programmatically, including their content, metadata, layout settings, and store associations.

It provides getter/setter methods for all page properties and includes validation for page identifiers and HTML content before saving.

Public Methods

  • load()
  • noRoutePage()
  • getStores()
  • checkIdentifier()
  • getAvailableStatuses()
  • getIdentities()
  • 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()
  • beforeSave()