You are here

public function FieldItemBase::fieldSettingsForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::fieldSettingsForm()
  2. 10 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::fieldSettingsForm()

Returns a form for the field-level settings.

Invoked from \Drupal\field_ui\Form\FieldConfigEditForm to allow administrators to configure field-level settings.

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 settings.

Overrides FieldItemInterface::fieldSettingsForm

7 methods override FieldItemBase::fieldSettingsForm()
BooleanItem::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
Returns a form for the field-level settings.
CommentItem::fieldSettingsForm in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Returns a form for the field-level settings.
EntityReferenceItem::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
Returns a form for the field-level settings.
LinkItem::fieldSettingsForm in core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
Returns a form for the field-level settings.
NumericItemBase::fieldSettingsForm in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
Returns a form for the field-level settings.

... See full list

File

core/lib/Drupal/Core/Field/FieldItemBase.php, line 226

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
  return [];
}