function FieldConfigEditForm::getTitle

Same name in other branches
  1. 8.9.x core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::getTitle()
  2. 10 core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::getTitle()
  3. 11.x core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::getTitle()

The _title_callback for the field settings form.

Parameters

\Drupal\field\FieldConfigInterface $field_config: The field.

Return value

string The label of the field.

File

core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 228

Class

FieldConfigEditForm
Provides a form for the field settings form.

Namespace

Drupal\field_ui\Form

Code

public function getTitle(FieldConfigInterface $field_config) {
    return $field_config->label();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.