Files
esun3d/app/code/Esun/MultiLocaleTranslation/Model/TranslatableEntityInterface.php
T
2026-09-15 10:35:56 +08:00

23 lines
535 B
PHP

<?php
declare(strict_types=1);
namespace Esun\MultiLocaleTranslation\Model;
interface TranslatableEntityInterface
{
/**
* @return array<int, array{
* code:string,
* label:string,
* source_value:string,
* target_value:string,
* is_html:bool,
* use_default:bool
* }>
*/
public function getFields(int $entityId, int $sourceStoreId, int $targetStoreId): array;
public function apply(int $entityId, int $targetStoreId, array $fields, array $useDefault = []): void;
}