SqlContentEntityStorage::requiresEntityStorageSchemaChanges

public SqlContentEntityStorage::requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) Checks if the changes to the entity type requires storage schema changes. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The updated entity type definition. \Drupal\Core\Entity\EntityTypeInterface $original: The original entity type definition. Return value bool TRUE if storage schema changes are required, FALSE otherwise. Overrides EntityStorag

SqlContentEntityStorage::requiresEntityDataMigration

public SqlContentEntityStorage::requiresEntityDataMigration(EntityTypeInterface $entity_type, EntityTypeInterface $original) Checks if existing data would be lost if the schema changes were applied. If there are no schema changes needed, then no data needs to be migrated, but it is not the responsibility of this function to recheck what requiresEntityStorageSchemaChanges() checks. Rather, the meaning of what this function returns when requiresEntityStorageSchemaChanges() returns FALSE is undefi

SqlContentEntityStorage::readFieldItemsToPurge

protected SqlContentEntityStorage::readFieldItemsToPurge(FieldDefinitionInterface $field_definition, $batch_size) Reads values to be purged for a single field. This method is called during field data purge, on fields for which onFieldDefinitionDelete() has previously run. Parameters \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. $batch_size: The maximum number of field data records to purge before returning. Return value \Drupal\Core\Field\FieldItemListIn

SqlContentEntityStorage::purgeFieldItems

protected SqlContentEntityStorage::purgeFieldItems(ContentEntityInterface $entity, FieldDefinitionInterface $field_definition) Removes field items from storage per entity during purge. Parameters ContentEntityInterface $entity: The entity revision, whose values are being purged. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field whose values are bing purged. Overrides ContentEntityStorageBase::purgeFieldItems File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.ph

SqlContentEntityStorage::onFieldStorageDefinitionUpdate

public SqlContentEntityStorage::onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Reacts to the update of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being updated. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original storage definition; i.e., the definition before the update. Throws \Drupal\Core\Entity\Exception\FieldS

SqlContentEntityStorage::onFieldStorageDefinitionDelete

public SqlContentEntityStorage::onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $storage_definition) Reacts to the deletion of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field being deleted. Overrides ContentEntityStorageBase::onFieldStorageDefinitionDelete File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1427 Class SqlContentEntityStorage A content entity database storage implemen

SqlContentEntityStorage::onFieldStorageDefinitionCreate

public SqlContentEntityStorage::onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition) Reacts to the creation of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created. Overrides ContentEntityStorageBase::onFieldStorageDefinitionCreate File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1401 Class SqlContentEntityStorage A content entity database storage imp

SqlContentEntityStorage::onFieldDefinitionDelete

public SqlContentEntityStorage::onFieldDefinitionDelete(FieldDefinitionInterface $field_definition) Reacts to the deletion of a field. Stored values should not be wiped at once, but marked as 'deleted' so that they can go through a proper purge process later on. Parameters \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition being deleted. Overrides ContentEntityStorageBase::onFieldDefinitionDelete File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php,

SqlContentEntityStorage::onEntityTypeUpdate

public SqlContentEntityStorage::onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original) Reacts to the update of the entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The updated entity type definition. \Drupal\Core\Entity\EntityTypeInterface $original: The original entity type definition. Overrides EntityTypeListenerInterface::onEntityTypeUpdate File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1377 Class SqlConte

SqlContentEntityStorage::onEntityTypeDelete

public SqlContentEntityStorage::onEntityTypeDelete(EntityTypeInterface $entity_type) Reacts to the deletion of the entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type being deleted. Overrides EntityTypeListenerInterface::onEntityTypeDelete File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1392 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Core\Entity\Sql Code public functi