Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | NOROUTE_PAGE_ID = 'no-route' |
const | STATUS_ENABLED = 1 |
const | STATUS_DISABLED = 0 |
const | CACHE_TAG = 'cms_p' |
![]() | |
const | PAGE_ID = 'page_id' |
const | IDENTIFIER = 'identifier' |
const | TITLE = 'title' |
const | PAGE_LAYOUT = 'page_layout' |
const | META_TITLE = 'meta_title' |
const | META_KEYWORDS = 'meta_keywords' |
const | META_DESCRIPTION = 'meta_description' |
const | CONTENT_HEADING = 'content_heading' |
const | CONTENT = 'content' |
const | CREATION_TIME = 'creation_time' |
const | UPDATE_TIME = 'update_time' |
const | SORT_ORDER = 'sort_order' |
const | LAYOUT_UPDATE_XML = 'layout_update_xml' |
const | CUSTOM_THEME = 'custom_theme' |
const | CUSTOM_ROOT_TEMPLATE = 'custom_root_template' |
const | CUSTOM_LAYOUT_UPDATE_XML = 'custom_layout_update_xml' |
const | CUSTOM_THEME_FROM = 'custom_theme_from' |
const | CUSTOM_THEME_TO = 'custom_theme_to' |
const | IS_ACTIVE = 'is_active' |
Protected Member Functions | |
_construct () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_cacheTag = self::CACHE_TAG | |
$_eventPrefix = 'cms_page' | |
![]() | |
$_eventPrefix = 'core_abstract' | |
$_eventObject = 'object' | |
$_idFieldName = 'id' | |
$_hasDataChanges = false | |
$_origData | |
$_isDeleted = false | |
$_resource | |
$_resourceCollection | |
$_resourceName | |
$_collectionName | |
$_cacheTag = false | |
$_dataSaveAllowed = true | |
$_isObjectNew = null | |
$_validatorBeforeSave = null | |
$_eventManager | |
$_cacheManager | |
$_registry | |
$_logger | |
$_appState | |
$_actionValidator | |
$storedData = [] | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
@api @method Page setStoreId(array $storeId) @method array getStoreId() @SuppressWarnings(PHPMD.ExcessivePublicCount)
|
protected |
beforeSave | ( | ) |
{}
Before save handler
\Magento\Cms\Model\ResourceModel\Page | $subject | |
\Magento\Framework\Model\AbstractModel | $object |
Definition at line 544 of file Page.php.
checkIdentifier | ( | $identifier, | |
$storeId | |||
) |
getAvailableStatuses | ( | ) |
getContent | ( | ) |
getContentHeading | ( | ) |
Get content heading
Implements PageInterface.
Definition at line 215 of file Page.php.
getCreationTime | ( | ) |
getCustomLayoutUpdateXml | ( | ) |
Get custom layout update xml
Implements PageInterface.
Definition at line 295 of file Page.php.
getCustomRootTemplate | ( | ) |
Get custom root template
Implements PageInterface.
Definition at line 285 of file Page.php.
getCustomTheme | ( | ) |
getCustomThemeFrom | ( | ) |
Get custom theme from
Implements PageInterface.
Definition at line 305 of file Page.php.
getCustomThemeTo | ( | ) |
Get custom theme to
Implements PageInterface.
Definition at line 315 of file Page.php.
getId | ( | ) |
getIdentifier | ( | ) |
getIdentities | ( | ) |
getLayoutUpdateXml | ( | ) |
Get layout update xml
Implements PageInterface.
Definition at line 265 of file Page.php.
getMetaDescription | ( | ) |
Get meta description
Implements PageInterface.
Definition at line 205 of file Page.php.
getMetaKeywords | ( | ) |
getMetaTitle | ( | ) |
Get meta title
Implements PageInterface.
Definition at line 185 of file Page.php.
getPageLayout | ( | ) |
getSortOrder | ( | ) |
getTitle | ( | ) |
getUpdateTime | ( | ) |
isActive | ( | ) |
load | ( | $id, | |
$field = null |
|||
) |
noRoutePage | ( | ) |
Load No-Route Page
Definition at line 90 of file Page.php.
setContent | ( | $content | ) |
Set content
string | $content |
Implements PageInterface.
Definition at line 425 of file Page.php.
setContentHeading | ( | $contentHeading | ) |
Set content heading
string | $contentHeading |
Implements PageInterface.
Definition at line 414 of file Page.php.
setCreationTime | ( | $creationTime | ) |
Set creation time
string | $creationTime |
Implements PageInterface.
Definition at line 436 of file Page.php.
setCustomLayoutUpdateXml | ( | $customLayoutUpdateXml | ) |
Set custom layout update xml
string | $customLayoutUpdateXml |
Implements PageInterface.
Definition at line 502 of file Page.php.
setCustomRootTemplate | ( | $customRootTemplate | ) |
Set custom root template
string | $customRootTemplate |
Implements PageInterface.
Definition at line 491 of file Page.php.
setCustomTheme | ( | $customTheme | ) |
Set custom theme
string | $customTheme |
Implements PageInterface.
Definition at line 480 of file Page.php.
setCustomThemeFrom | ( | $customThemeFrom | ) |
Set custom theme from
string | $customThemeFrom |
Implements PageInterface.
Definition at line 513 of file Page.php.
setCustomThemeTo | ( | $customThemeTo | ) |
Set custom theme to
string | $customThemeTo |
Implements PageInterface.
Definition at line 524 of file Page.php.
setId | ( | $id | ) |
Set ID
int | $id |
Implements PageInterface.
Definition at line 336 of file Page.php.
setIdentifier | ( | $identifier | ) |
Set identifier
string | $identifier |
Implements PageInterface.
Definition at line 347 of file Page.php.
setIsActive | ( | $isActive | ) |
Set is active
int | bool | $isActive |
Implements PageInterface.
Definition at line 535 of file Page.php.
setLayoutUpdateXml | ( | $layoutUpdateXml | ) |
Set layout update xml
string | $layoutUpdateXml |
Implements PageInterface.
Definition at line 469 of file Page.php.
setMetaDescription | ( | $metaDescription | ) |
Set meta description
string | $metaDescription |
Implements PageInterface.
Definition at line 403 of file Page.php.
setMetaKeywords | ( | $metaKeywords | ) |
Set meta keywords
string | $metaKeywords |
Implements PageInterface.
Definition at line 392 of file Page.php.
setMetaTitle | ( | $metaTitle | ) |
Set meta title
string | $metaTitle |
Implements PageInterface.
Definition at line 381 of file Page.php.
setPageLayout | ( | $pageLayout | ) |
Set page layout
string | $pageLayout |
Implements PageInterface.
Definition at line 369 of file Page.php.
setSortOrder | ( | $sortOrder | ) |
Set sort order
string | $sortOrder |
Implements PageInterface.
Definition at line 458 of file Page.php.
setTitle | ( | $title | ) |
Set title
string | $title |
Implements PageInterface.
Definition at line 358 of file Page.php.
setUpdateTime | ( | $updateTime | ) |
Set update time
string | $updateTime |
Implements PageInterface.
Definition at line 447 of file Page.php.