final class RecordFormFieldPresenter (View source)

Maps a refused record write to the record form input it should highlight.

Validators that name the offending part win; for the rest the message text is read the way the forms always did, until every validator names its field.

Constants

FIELD_NAME

FIELD_CONTENT

FIELD_TTL

FIELD_PRIO

FIELD_DUPLICATE

FIELD_NONE

Methods

static string
fieldId(RecordField|null $field, string $message, Refusal|null $refusal = null)

No description

static string
idFor(RecordField $field)

No description

static string
fieldForMessage(string $message)

No description

Details

static string fieldId(RecordField|null $field, string $message, Refusal|null $refusal = null)

No description

Parameters

RecordField|null $field
string $message
Refusal|null $refusal

Return Value

string

static string idFor(RecordField $field)

No description

Parameters

RecordField $field

Return Value

string

static string fieldForMessage(string $message)

No description

Parameters

string $message

Return Value

string