public function FieldStorageConfig::isDeletable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::isDeletable()
Checks if the field storage can be deleted.
Return value
bool TRUE if the field storage can be deleted.
Overrides FieldStorageConfigInterface::isDeletable
File
- core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 809 - Contains \Drupal\field\Entity\FieldStorageConfig.
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function isDeletable() {
// The field storage is not deleted, is configured to be removed when there
// are no fields, the field storage has no bundles, and field storages are
// not in the process of being deleted.
return !$this->deleted && !$this->persist_with_no_fields && count($this
->getBundles()) == 0 && !static::$inDeletion;
}