SqlContentEntityStorage::onEntityTypeCreate

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

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

public SqlContentEntityStorage::onBundleDelete($bundle, $entity_type_id) Reacts to a bundle being deleted. This method runs before fields are deleted. Parameters string $bundle: The name of the bundle being deleted. string $entity_type_id: The entity type to which the bundle is bound; e.g. 'node' or 'user'. Overrides EntityBundleListenerInterface::onBundleDelete File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1509 Class SqlContentEntityStorage A content entity datab

SqlContentEntityStorage::onBundleCreate

public SqlContentEntityStorage::onBundleCreate($bundle, $entity_type_id) Reacts to a bundle being created. Parameters string $bundle: The name of the bundle created. string $entity_type_id: The entity type to which the bundle is bound; e.g. 'node' or 'user'. Overrides EntityBundleListenerInterface::onBundleCreate File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1504 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Co

SqlContentEntityStorage::mapFromStorageRecords

protected SqlContentEntityStorage::mapFromStorageRecords(array $records, $load_from_revision = FALSE) Maps from storage records to entity objects, and attaches fields. Parameters array $records: Associative array of query results, keyed on the entity ID. bool $load_from_revision: Flag to indicate whether revisions should be loaded or not. Return value array An array of entity objects implementing the EntityInterface. Overrides EntityStorageBase::mapFromStorageRecords File core/lib/Drupal/Core

SqlContentEntityStorage::loadFromDedicatedTables

protected SqlContentEntityStorage::loadFromDedicatedTables(array &$values, $load_from_revision) Loads values of fields stored in dedicated tables for a group of entities. Parameters array &$values: An array of values keyed by entity ID. bool $load_from_revision: (optional) Flag to indicate whether revisions should be loaded or not, defaults to FALSE. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1085 Class SqlContentEntityStorage A content entity database

SqlContentEntityStorage::mapToDataStorageRecord

protected SqlContentEntityStorage::mapToDataStorageRecord(EntityInterface $entity, $table_name = NULL) Maps from an entity object to the storage record of the field data. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity object. string $table_name: (optional) The table name to map records to. Defaults to the data table. Return value \stdClass The record to store. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 1016 Class SqlContentEntityStorage A c

SqlContentEntityStorage::loadFromSharedTables

protected SqlContentEntityStorage::loadFromSharedTables(array &$values, array &$translations) Loads values for fields stored in the shared data tables. Parameters array &$values: Associative array of entities values, keyed on the entity ID. array &$translations: List of translations, keyed on the entity ID. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 502 Class SqlContentEntityStorage A content entity database storage implementation. Namespace

SqlContentEntityStorage::isColumnSerial

protected SqlContentEntityStorage::isColumnSerial($table_name, $schema_name) Checks whether a field column should be treated as serial. Parameters $table_name: The name of the table the field column belongs to. $schema_name: The schema name of the field column. Return value bool TRUE if the column is serial, FALSE otherwise. See also \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processBaseTable() \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processRevisionTable() File cor

SqlContentEntityStorage::getTableMapping

public SqlContentEntityStorage::getTableMapping(array $storage_definitions = NULL) Gets a table mapping for the entity's SQL tables. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions: (optional) An array of field storage definitions to be used to compute the table mapping. Defaults to the ones provided by the entity manager. Return value \Drupal\Core\Entity\Sql\TableMappingInterface A table mapping object for the entity's tables. Overrides SqlEntityStorageIn