FieldStorageConfig::$persist_with_no_fields

Flag indicating whether the field storage should be deleted when orphaned.

By default field storages for configurable fields are removed when there are no remaining fields using them. If multiple modules provide bundles which need to use the same field storage then setting this to TRUE will preserve the field storage regardless of what happens to the bundles. The classic use case for this is node body field storage since Book, Forum, the Standard profile and bundle (node type) creation through the UI all use same field storage.

Type: bool

File

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

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

protected $persist_with_no_fields = FALSE;
doc_Drupal
2016-10-29 09:12:16
Comments
Leave a Comment

Please login to continue.