trait FieldInputValueNormalizerTrait (View source)

internal  
 

A trait used to assist in the normalization of raw input field values.

Methods

static array
normalizeValue(mixed $value, string $main_property_name)

Ensure a field value is transformed into a format keyed by delta.

Details

static protected array normalizeValue(mixed $value, string $main_property_name)

Ensure a field value is transformed into a format keyed by delta.

Parameters

mixed $value

The raw field value to normalize.

string $main_property_name

The main field property name.

Return Value

array

A field value normalized into a format keyed by delta.