You are here

public function IngredientFieldItemList::defaultValuesForm in Recipe 8.2

Returns a form for the default value input.

Invoked from \Drupal\field_ui\Form\FieldConfigEditForm to allow administrators to configure instance-level default value.

Parameters

array $form: The form where the settings form is being included in.

\Drupal\Core\Form\FormStateInterface $form_state: The form state of the (entire) configuration form.

Return value

array The form definition for the field default value.

Overrides FieldItemList::defaultValuesForm

File

modules/ingredient/src/Plugin/Field/FieldType/IngredientFieldItemList.php, line 16

Class

IngredientFieldItemList
Represents a configurable entity ingredient field.

Namespace

Drupal\ingredient\Plugin\Field\FieldType

Code

public function defaultValuesForm(array &$form, FormStateInterface $form_state) {
}