EmailStudioStore
Corex\Email\Studio\EmailStudioStore · interface · Add-ons layer
Persistence boundary for editable Email Studio assets.
Public API
Section titled “Public API”create(string $type, string $slug, string $name, int $parentId, array $payload): int
Section titled “create(string $type, string $slug, string $name, int $parentId, array $payload): int”update(int $id, string $name, array $payload): bool
Section titled “update(int $id, string $name, array $payload): bool”find(int $id): ?array
Section titled “find(int $id): ?array”findBySlug(string $type, string $slug): ?array
Section titled “findBySlug(string $type, string $slug): ?array”all(string $type, ?int $parentId): array
Section titled “all(string $type, ?int $parentId): array”latest(string $type, int $limit): array
Section titled “latest(string $type, int $limit): array”The most recent records of a kind, newest first, however many are stored (spec 113, US5).