63 $needle =
'block_id="' . $this->
getId() .
'"';
64 if (
false == strstr($this->
getContent(), $needle)) {
65 return parent::beforeSave();
67 throw new \Magento\Framework\Exception\LocalizedException(
68 __(
'Make sure that static block content does not reference the block itself.')
79 return [self::CACHE_TAG .
'_' . $this->
getId(), self::CACHE_TAG .
'_' . $this->
getIdentifier()];
89 return $this->
getData(self::BLOCK_ID);
99 return (
string)$this->
getData(self::IDENTIFIER);
109 return $this->
getData(self::TITLE);
119 return $this->
getData(self::CONTENT);
129 return $this->
getData(self::CREATION_TIME);
139 return $this->
getData(self::UPDATE_TIME);
149 return (
bool)$this->
getData(self::IS_ACTIVE);
171 return $this->
setData(self::IDENTIFIER, $identifier);
204 return $this->
setData(self::CREATION_TIME, $creationTime);
215 return $this->
setData(self::UPDATE_TIME, $updateTime);
226 return $this->
setData(self::IS_ACTIVE, $isActive);
246 return [self::STATUS_ENABLED =>
__(
'Enabled'), self::STATUS_DISABLED =>
__(
'Disabled')];
setData($key, $value=null)
getData($key='', $index=null)
setCreationTime($creationTime)
setUpdateTime($updateTime)
setIdentifier($identifier)