SqlContentEntityStorageSchema::createEntitySchemaIndexes

protected SqlContentEntityStorageSchema::createEntitySchemaIndexes(array $entity_schema, FieldStorageDefinitionInterface $storage_definition = NULL) Creates the specified entity schema indexes and keys. Parameters array $entity_schema: The entity schema definition. \Drupal\Core\Field\FieldStorageDefinitionInterface|null $storage_definition: (optional) If a field storage definition is specified, only indexes and keys involving its columns will be processed. Otherwise all defined entity indexes

SqlContentEntityStorageSchema::createDedicatedTableSchema

protected SqlContentEntityStorageSchema::createDedicatedTableSchema(FieldStorageDefinitionInterface $storage_definition) Creates the schema for a field stored in a dedicated table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field being created. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1101 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, transla

SqlContentEntityStorageSchema::checkEntityType

protected SqlContentEntityStorageSchema::checkEntityType(EntityTypeInterface $entity_type) Checks that we are dealing with the correct entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type to be checked. Return value bool TRUE if the entity type matches the current one. Throws \Drupal\Core\Entity\EntityStorageException File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 463 Class SqlContentEntityStorageSchema Defines a sch

SqlContentEntityStorageSchema::createSharedTableSchema

protected SqlContentEntityStorageSchema::createSharedTableSchema(FieldStorageDefinitionInterface $storage_definition, $only_save = FALSE) Creates the schema for a field stored in a shared table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field being created. bool $only_save: (optional) Whether to skip modification of database tables and only save the schema data for future comparison. For internal use only. This is used by o

SqlContentEntityStorageSchema::addUniqueKey

protected SqlContentEntityStorageSchema::addUniqueKey($table, $name, array $specifier) Creates a unique key, dropping it if already existing. Parameters string $table: The table name. string $name: The index name. array $specifier: The unique fields. See also \Drupal\Core\Database\Schema::addUniqueKey() File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 2016 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable ent

SqlContentEntityStorageSchema::addTableDefaults

protected SqlContentEntityStorageSchema::addTableDefaults(&$schema) Adds defaults to a table schema definition. Parameters $schema: The schema definition array for a single table, passed by reference. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 982 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable entities. Namespace Drupal\Core\Entity\Sql Code protected function addTableDefaults(&$schema) {

SqlContentEntityStorageSchema::addIndex

protected SqlContentEntityStorageSchema::addIndex($table, $name, array $specifier, array $schema) Creates an index, dropping it if already existing. Parameters string $table: The table name. string $name: The index name. array $specifier: The fields to index. array $schema: The table specification. See also \Drupal\Core\Database\Schema::addIndex() File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1998 Class SqlContentEntityStorageSchema Defines a schema handler

SqlContentEntityStorageSchema::$storage

The storage object for the given entity type. Type: \Drupal\Core\Entity\Sql\SqlContentEntityStorage File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 64 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable entities. Namespace Drupal\Core\Entity\Sql Code protected $storage;

SqlContentEntityStorageSchema::addSharedTableFieldUniqueKey

protected SqlContentEntityStorageSchema::addSharedTableFieldUniqueKey(FieldStorageDefinitionInterface $storage_definition, &$schema) Adds a unique key for the specified field to the given schema definition. Also adds a 'not null' constraint, because many databases do not reliably support unique keys on null columns. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field to which to add a unique key. array $schema: A reference

SqlContentEntityStorageSchema::addSharedTableFieldForeignKey

protected SqlContentEntityStorageSchema::addSharedTableFieldForeignKey(FieldStorageDefinitionInterface $storage_definition, &$schema, $foreign_table, $foreign_column) Adds a foreign key for the specified field to the given schema definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field to which to add a foreign key. array $schema: A reference to the schema array to be updated. string $foreign_table: The foreign table