SqlContentEntityStorage::setEntityType

public SqlContentEntityStorage::setEntityType(EntityTypeInterface $entity_type) Updates the wrapped entity type definition. @internal Only to be used internally by Entity API. Expected to be removed by https://www.drupal.org/node/2274017. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The update entity type. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 259 Class SqlContentEntityStorage A content entity database storage implementation. Namespac

SqlContentEntityStorage::__construct

public SqlContentEntityStorage::__construct(EntityTypeInterface $entity_type, Connection $database, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, LanguageManagerInterface $language_manager) Constructs a SqlContentEntityStorage object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Database\Connection $database: The database connection to be used. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The en

SqlContentEntityStorage::saveToSharedTables

protected SqlContentEntityStorage::saveToSharedTables(ContentEntityInterface $entity, $table_name = NULL, $new_revision = NULL) Saves fields that use the shared tables. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. string $table_name: (optional) The table name to save to. Defaults to the data table. bool $new_revision: (optional) Whether we are dealing with a new revision. By default fetches the information from the entity object. File core/lib/Drupal/Core/E

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 1689 Class SqlContentEntityStorage A content entity database storage

SqlContentEntityStorage::wrapSchemaException

protected SqlContentEntityStorage::wrapSchemaException(callable $callback) Wraps a database schema exception into an entity storage exception. Parameters callable $callback: The callback to be executed. Throws \Drupal\Core\Entity\EntityStorageException When a database schema exception is thrown. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1463 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Core\Entity\Sql Co

SqlContentEntityStorage::saveToDedicatedTables

protected SqlContentEntityStorage::saveToDedicatedTables(ContentEntityInterface $entity, $update = TRUE, $names = array()) Saves values of fields that use dedicated tables. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity. bool $update: TRUE if the entity is being updated, FALSE if it is being inserted. string[] $names: (optional) The names of the fields to be stored. Defaults to all the available fields. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php

SqlContentEntityStorage::saveRevision

protected SqlContentEntityStorage::saveRevision(ContentEntityInterface $entity) Saves an entity revision. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. Return value int The revision id. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1033 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Core\Entity\Sql Code protected function saveRevision(ContentEntityInterface $entity) { $rec

SqlContentEntityStorage::requiresFieldStorageSchemaChanges

public SqlContentEntityStorage::requiresFieldStorageSchemaChanges(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) Checks if the changes to the storage definition requires schema changes. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The updated field storage definition. \Drupal\Core\Field\FieldStorageDefinitionInterface $original: The original field storage definition. Return value bool TRUE if storage schema

SqlContentEntityStorage::save

public SqlContentEntityStorage::save(EntityInterface $entity) Saves the entity permanently. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown. Overrides EntityStorageBase::save File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 758 Class SqlContentEntityStorage

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