Skip to content
Corex

FieldDriver

Corex\Fields\FieldDriver · interface · Core layer

Custom-field access, independent of ACF. Concrete drivers resolve fields through ACF (when present) or native post meta (when absent) behind this interface, so calling code is identical either way (spec FR-008).

get(int $entityId, string $key, mixed $default): mixed

Section titled “get(int $entityId, string $key, mixed $default): mixed”

Read a field; return $default when it is absent (FR-011).

set(int $entityId, string $key, mixed $value): void

Section titled “set(int $entityId, string $key, mixed $value): void”