Page
Magento\Cms\Model\Page
What it does
The CMS Page Model represents a content page in Magento 2's Content Management System.
Developers use this class to create, retrieve, update, and manage CMS pages programmatically, including their content, layout settings, SEO metadata, and store associations.
It provides methods for loading pages, handling the 404 no-route page, validating identifiers, and managing page attributes like title, content, and active status.
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()