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 75

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

1
protected $field_name;
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.