82 return parent::load(
$id, $field);
126 return [self::STATUS_ENABLED =>
__(
'Enabled'), self::STATUS_DISABLED =>
__(
'Disabled')];
136 return [self::CACHE_TAG .
'_' . $this->
getId()];
146 return parent::getData(self::PAGE_ID);
156 return $this->
getData(self::IDENTIFIER);
166 return $this->
getData(self::TITLE);
176 return $this->
getData(self::PAGE_LAYOUT);
187 return $this->
getData(self::META_TITLE);
197 return $this->
getData(self::META_KEYWORDS);
207 return $this->
getData(self::META_DESCRIPTION);
217 return $this->
getData(self::CONTENT_HEADING);
227 return $this->
getData(self::CONTENT);
237 return $this->
getData(self::CREATION_TIME);
247 return $this->
getData(self::UPDATE_TIME);
257 return $this->
getData(self::SORT_ORDER);
267 return $this->
getData(self::LAYOUT_UPDATE_XML);
277 return $this->
getData(self::CUSTOM_THEME);
287 return $this->
getData(self::CUSTOM_ROOT_TEMPLATE);
297 return $this->
getData(self::CUSTOM_LAYOUT_UPDATE_XML);
307 return $this->
getData(self::CUSTOM_THEME_FROM);
317 return $this->
getData(self::CUSTOM_THEME_TO);
327 return (
bool)$this->
getData(self::IS_ACTIVE);
349 return $this->
setData(self::IDENTIFIER, $identifier);
371 return $this->
setData(self::PAGE_LAYOUT, $pageLayout);
383 return $this->
setData(self::META_TITLE, $metaTitle);
394 return $this->
setData(self::META_KEYWORDS, $metaKeywords);
405 return $this->
setData(self::META_DESCRIPTION, $metaDescription);
416 return $this->
setData(self::CONTENT_HEADING, $contentHeading);
438 return $this->
setData(self::CREATION_TIME, $creationTime);
449 return $this->
setData(self::UPDATE_TIME, $updateTime);
460 return $this->
setData(self::SORT_ORDER, $sortOrder);
471 return $this->
setData(self::LAYOUT_UPDATE_XML, $layoutUpdateXml);
482 return $this->
setData(self::CUSTOM_THEME, $customTheme);
493 return $this->
setData(self::CUSTOM_ROOT_TEMPLATE, $customRootTemplate);
504 return $this->
setData(self::CUSTOM_LAYOUT_UPDATE_XML, $customLayoutUpdateXml);
515 return $this->
setData(self::CUSTOM_THEME_FROM, $customThemeFrom);
526 return $this->
setData(self::CUSTOM_THEME_TO, $customThemeTo);
537 return $this->
setData(self::IS_ACTIVE, $isActive);
546 $originalIdentifier = $this->
getOrigData(
'identifier');
553 if (!$this->
getId() || $originalIdentifier === $currentIdentifier) {
554 return parent::beforeSave();
557 switch ($originalIdentifier) {
558 case $this->getScopeConfig()->getValue(PageHelper::XML_PATH_NO_ROUTE_PAGE):
560 __(
'This identifier is reserved for "CMS No Route Page" in configuration.')
562 case $this->getScopeConfig()->getValue(PageHelper::XML_PATH_HOME_PAGE):
563 throw new LocalizedException(
__(
'This identifier is reserved for "CMS Home Page" in configuration.'));
564 case $this->getScopeConfig()->getValue(PageHelper::XML_PATH_NO_COOKIES_PAGE):
566 __(
'This identifier is reserved for "CMS No Cookies Page" in configuration.')
570 return parent::beforeSave();
576 private function getScopeConfig()
578 if (
null === $this->scopeConfig) {
582 return $this->scopeConfig;
setCustomTheme($customTheme)
setData($key, $value=null)
getData($key='', $index=null)
setCustomThemeFrom($customThemeFrom)
setLayoutUpdateXml($layoutUpdateXml)
setContentHeading($contentHeading)
setCustomLayoutUpdateXml($customLayoutUpdateXml)
setUpdateTime($updateTime)
checkIdentifier($identifier, $storeId)
setCustomRootTemplate($customRootTemplate)
setIdentifier($identifier)
setPageLayout($pageLayout)
setMetaKeywords($metaKeywords)
setMetaDescription($metaDescription)
setCreationTime($creationTime)
setCustomThemeTo($customThemeTo)
getCustomLayoutUpdateXml()