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 1689
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\Sql
Code
1 2 3 4 5 6 7 8 9 | protected function storageDefinitionIsDeleted(FieldStorageDefinitionInterface $storage_definition ) { // Configurable fields are marked for deletion. if ( $storage_definition instanceOf FieldStorageConfigInterface) { return $storage_definition ->isDeleted(); } // For non configurable fields check whether they are still in the last // installed schema repository. return ! array_key_exists ( $storage_definition ->getName(), $this ->entityManager->getLastInstalledFieldStorageDefinitions( $this ->entityTypeId)); } |
Please login to continue.