objects

Field

A field definition - its type, label, options and render template.

A global one is read from fields/{name}/index.json with its `extends` chain applied; a template's are built by list(). resolveField() turns one into a per-render FieldValue.
$field Phlat\Field 2 methods
Properties (7)
$field->label string readonly
$field->labelled bool readonly
$field->name string readonly
$field->type string readonly
$field->options array readonly
$field->render string readonly
$field->renders array readonly
Show
  • list Inline $entries (see TemplateFields::expand()) as [name => Field].
  • templateFields The sub-fields this field declares (`fields`, as an object or collection does) as [name => Field].

Methods

list

static
Field::list(array $entries): array<string, Field>

Inline $entries (see TemplateFields::expand()) as [name => Field].

Parameters (1)
$entries array

Returns array<string, Field>

phlat/src/Field.php:50
$field->templateFields(): array<string, Field>

The sub-fields this field declares (`fields`, as an object or collection does) as [name => Field].

Returns array<string, Field>

phlat/src/Field.php:40