init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user