init
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user