You are here

protected property FieldStorageConfig::$field_name in Drupal 8

Same name and namespace in other branches
  1. 9 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;