W3cubDocs

/Drupal 8

protected function SqlContentEntityStorage::storageDefinitionIsDeleted

protected SqlContentEntityStorage::storageDefinitionIsDeleted(FieldStorageDefinitionInterface $storage_definition)

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.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1672

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));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!SqlContentEntityStorage.php/function/SqlContentEntityStorage::storageDefinitionIsDeleted/8.1.x