32 lines
725 B
PHP
32 lines
725 B
PHP
<?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;
|
|
}
|