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,31 @@
<?php
declare(strict_types=1);
namespace Esun\Translation\Api;
interface TranslatableEntityInterface
{
public function getType(): string;
public function getLabel(): string;
public function getTitle(int $entityId): string;
public function getEditUrlPath(): string;
public function getEditIdParam(): string;
/**
* @param int[] $targetStoreIds
* @return array<int, array<string, mixed>>
*/
public function getFields(int $entityId, array $targetStoreIds = []): array;
/**
* @param int[] $storeIds
* @param array<string, mixed> $fields
* @return array<string, mixed>
*/
public function apply(int $entityId, array $storeIds, array $fields): array;
}