SqlContentEntityStorageSchema::getSchemaFromStorageDefinition

protected SqlContentEntityStorageSchema::getSchemaFromStorageDefinition(FieldStorageDefinitionInterface $storage_definition) Gets the schema data for the given field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. The field that must not have custom storage, i.e. the storage must take care of storing the field. Return value array The schema data. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSch

SqlContentEntityStorageSchema::getFieldUniqueKeys

protected SqlContentEntityStorageSchema::getFieldUniqueKeys($field_name, array $field_schema, array $column_mapping) Gets a unique key schema array for a given field. Parameters string $field_name: The name of the field. array $field_schema: The schema of the field. string[] $column_mapping: A mapping of field column names to database column names. Return value array The schema definition for the unique keys. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 657

SqlContentEntityStorageSchema::getSharedTableFieldSchema

protected SqlContentEntityStorageSchema::getSharedTableFieldSchema(FieldStorageDefinitionInterface $storage_definition, $table_name, array $column_mapping) Gets the schema for a single field definition. Entity types may override this method in order to optimize the generated schema for given field. While all optimizations that apply to a single field have to be added here, all cross-field optimizations should be via SqlContentEntityStorageSchema::getEntitySchema() instead; e.g., an index spanni

SqlContentEntityStorageSchema::getFieldSchemaIdentifierName

protected SqlContentEntityStorageSchema::getFieldSchemaIdentifierName($entity_type_id, $field_name, $key = NULL) Generates a safe schema identifier (name of an index, column name etc.). Parameters string $entity_type_id: The ID of the entity type. string $field_name: The name of the field. string|null $key: (optional) A further key to append to the name. Return value string The field identifier name. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 716 Class Sq

SqlContentEntityStorageSchema::getFieldSchemaData

protected SqlContentEntityStorageSchema::getFieldSchemaData($field_name, array $field_schema, array $column_mapping, $schema_key) Gets field schema data for the given key. Parameters string $field_name: The name of the field. array $field_schema: The schema of the field. string[] $column_mapping: A mapping of field column names to database column names. string $schema_key: The type of schema data. Either 'indexes' or 'unique keys'. Return value array The schema definition for the specified ke

SqlContentEntityStorageSchema::getFieldIndexes

protected SqlContentEntityStorageSchema::getFieldIndexes($field_name, array $field_schema, array $column_mapping) Gets an index schema array for a given field. Parameters string $field_name: The name of the field. array $field_schema: The schema of the field. string[] $column_mapping: A mapping of field column names to database column names. Return value array The schema definition for the indexes. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 640 Class SqlC

SqlContentEntityStorageSchema::getEntitySchemaData

protected SqlContentEntityStorageSchema::getEntitySchemaData(ContentEntityTypeInterface $entity_type, array $schema) Gets entity schema definitions for index and key definitions. Parameters \Drupal\Core\Entity\ContentEntityTypeInterface $entity_type: The entity type definition. array $schema: The entity schema array. Return value array A stripped down version of the $schema Schema API array containing, for each table, only the key and index definitions not derived from field storage definitio

SqlContentEntityStorageSchema::getFieldIndexName

protected SqlContentEntityStorageSchema::getFieldIndexName(FieldStorageDefinitionInterface $storage_definition, $index) Generates an index name for a field data table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. string $index: The name of the index. Return value string A string containing a generated index name for a field data table that is unique among all other fields. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntity

SqlContentEntityStorageSchema::getEntitySchemaTables

protected SqlContentEntityStorageSchema::getEntitySchemaTables() Gets a list of entity type tables. Return value array A list of entity type tables, keyed by table key. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 566 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable entities. Namespace Drupal\Core\Entity\Sql Code protected function getEntitySchemaTables() { return array_filter(array( 'base_table

SqlContentEntityStorageSchema::getFieldForeignKeys

protected SqlContentEntityStorageSchema::getFieldForeignKeys($field_name, array $field_schema, array $column_mapping) Gets field foreign keys. Parameters string $field_name: The name of the field. array $field_schema: The schema of the field. string[] $column_mapping: A mapping of field column names to database column names. Return value array The schema definition for the foreign keys. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 744 Class SqlContentEntity