Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldConfig.php

FieldConfig::$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/FieldConfig.php, line 78

Class

FieldConfig
Defines the Field entity.

Namespace

Drupal\field\Entity

Code

protected $deleted = FALSE;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal