public property Field::$id

The field ID (machine name).

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

Example: body, field_main_image.

Type: string

File

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

Class

Field
Defines the Field entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public $id;