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,23 @@
<?php
declare(strict_types=1);
namespace Esun\MultiLocaleTranslation\Model;
use Magento\Framework\App\ResourceConnection;
class LogCleaner
{
private const TABLE_NAME = 'esun_localetranslation_log';
public function __construct(private readonly ResourceConnection $resourceConnection)
{
}
public function clearAll(): int
{
return $this->resourceConnection->getConnection()->delete(
$this->resourceConnection->getTableName(self::TABLE_NAME)
);
}
}