Files
2026-09-15 10:35:56 +08:00

26 lines
630 B
PHP

<?php
declare(strict_types=1);
namespace Esun\ImageManager\Model;
use Magento\Framework\Model\AbstractModel;
use Magento\Framework\DataObject\IdentityInterface;
class Category extends AbstractModel implements IdentityInterface
{
public const CACHE_TAG = 'esun_image_category';
protected $_cacheTag = self::CACHE_TAG;
protected $_eventPrefix = self::CACHE_TAG;
protected function _construct(): void
{
$this->_init(\Esun\ImageManager\Model\ResourceModel\Category::class);
}
public function getIdentities(): array
{
return [self::CACHE_TAG . '_' . (int) $this->getId()];
}
}