FieldConfigBase::$label

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::label
  2. 8.9.x core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::label
  3. 10 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::label

The human-readable label for the field.

This will be used as the title of Form API elements for the field in entity edit forms, or as the label for the field values in displayed entities.

If not specified, this defaults to the field_name (mostly useful for fields created in tests).

Type: string

File

core/lib/Drupal/Core/Field/FieldConfigBase.php, line 75

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

protected $label;

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