This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
+29
View File
@@ -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);
}
}