This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Esun\ImageManager\Model;
use Magento\Framework\Model\AbstractModel;
use Magento\Framework\DataObject\IdentityInterface;
class Image extends AbstractModel implements IdentityInterface
{
public const CACHE_TAG = 'esun_image';
protected $_cacheTag = self::CACHE_TAG;
protected $_eventPrefix = self::CACHE_TAG;
protected function _construct(): void
{
$this->_init(\Esun\ImageManager\Model\ResourceModel\Image::class);
}
public function getIdentities(): array
{
return [self::CACHE_TAG . '_' . (int) $this->getId()];
}
}