You are here

protected function SqlContentEntityStorage::storageDefinitionIsDeleted in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::storageDefinitionIsDeleted()

Determines whether the passed field has been already deleted.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.

Return value

bool Whether the field has been already deleted.

3 calls to SqlContentEntityStorage::storageDefinitionIsDeleted()
SqlContentEntityStorage::countFieldData in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Determines the number of entities with values for a given field.
SqlContentEntityStorage::purgeFieldItems in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Removes field items from storage per entity during purge.
SqlContentEntityStorage::readFieldItemsToPurge in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
Reads values to be purged for a single field.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1667
Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorage.

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

protected function storageDefinitionIsDeleted(FieldStorageDefinitionInterface $storage_definition) {
  return !array_key_exists($storage_definition
    ->getName(), $this->entityManager
    ->getLastInstalledFieldStorageDefinitions($this->entityTypeId));
}