FieldStorageConfig::$deleted

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

Flag indicating whether the field is deleted.

The delete() method marks the field as "deleted" and removes the corresponding entry from the config storage, but keeps its definition in the state storage while field data is purged by a separate garbage-collection process.

Deleted fields stay out of the regular entity lifecycle (notably, their values are not populated in loaded entities, and are not saved back).

Type: bool

File

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

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

protected $deleted = FALSE;

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