FieldStorageConfig::$field_name

Same name in other branches
  1. 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::field_name
  2. 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::field_name
  3. 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::field_name

The field name.

This is the name of the property under which the field values are placed in an entity: $entity->{$field_name}. The maximum length is Field:NAME_MAX_LENGTH.

Example: body, field_main_image.

Type: string

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 83

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

protected $field_name;

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