30 lines
663 B
PHP
30 lines
663 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\Wiki\Model;
|
|
|
|
use Esun\Wiki\Model\ResourceModel\Homepage as HomepageResource;
|
|
use Magento\Framework\DataObject\IdentityInterface;
|
|
|
|
class Homepage extends Category implements IdentityInterface
|
|
{
|
|
public const CACHE_TAG = 'esun_wiki_homepage';
|
|
|
|
protected $_cacheTag = self::CACHE_TAG;
|
|
|
|
protected $_eventPrefix = self::CACHE_TAG;
|
|
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getIdentities(): array
|
|
{
|
|
return $this->getId() ? [self::CACHE_TAG . '_' . $this->getId()] : [];
|
|
}
|
|
|
|
protected function _construct(): void
|
|
{
|
|
$this->_init(HomepageResource::class);
|
|
}
|
|
}
|