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::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::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::requiresFieldDataMigration

public SqlContentEntityStorage::requiresFieldDataMigration(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $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 requiresFieldStorageSchemaChanges() checks. Rather, the meaning of what this function returns when requiresFieldStorageSchemaChang

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::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::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::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::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::mapToStorageRecord

protected SqlContentEntityStorage::mapToStorageRecord(ContentEntityInterface $entity, $table_name = NULL) Maps from an entity object to the storage record. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. string $table_name: (optional) The table name to map records to. Defaults to the base table. Return value \stdClass The record to store. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 931 Class SqlContentEntityStorage A content en