You are here

public function BaseFieldDefinition::isDeleted in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::isDeleted()
  2. 9 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::isDeleted()

Returns whether the field is deleted or not.

Return value

bool TRUE if the field is deleted, FALSE otherwise.

Overrides FieldStorageDefinitionInterface::isDeleted

File

core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 759

Class

BaseFieldDefinition
A class for defining entity fields.

Namespace

Drupal\Core\Field

Code

public function isDeleted() {
  return !empty($this->definition['deleted']);
}