public property FieldInstance::$label

The human-readable label for the instance.

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 field instances created in tests).

Type: string

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php, line 88
Contains \Drupal\field\Plugin\Core\Entity\FieldInstance.

Class

FieldInstance
Defines the Field instance entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public $label;