23 lines
535 B
PHP
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;
|
|
}
|