DefaultTableMapping::getReservedColumns

public DefaultTableMapping::getReservedColumns() Gets the list of columns that can not be used as field type columns. Return value array Overrides TableMappingInterface::getReservedColumns File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 309 Class DefaultTableMapping Defines a default table mapping class. Namespace Drupal\Core\Entity\Sql Code public function getReservedColumns() { return array('deleted'); }

DefaultTableMapping::getFieldTableName

public DefaultTableMapping::getFieldTableName($field_name) Gets the table name for a given column. Parameters string $field_name: The name of the entity field to return the column mapping for. Return value string Table name for the given field. Throws \Drupal\Core\Entity\Sql\SqlContentEntityStorageException Overrides TableMappingInterface::getFieldTableName File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 137 Class DefaultTableMapping Defines a default table mapping cl

DefaultTableMapping::getFieldNames

public DefaultTableMapping::getFieldNames($table_name) Gets a list of names for entity fields stored in the specified table. The return list is contains the entity field names, not database field (i.e. column) names. To get the mapping of specific entity field to database columns use ::getColumnNames(). Parameters string $table_name: The name of the table to return the field names for. Return value string[] An array of field names for the given table. Overrides TableMappingInterface::getField

DefaultTableMapping::getFieldColumnName

public DefaultTableMapping::getFieldColumnName(FieldStorageDefinitionInterface $storage_definition, $property_name) Generates a column name for a field property. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. string $property_name: The name of the property. Return value string A string containing a generated column name for a field data table that is unique among all other fields. Overrides TableMappingInterface::getFieldColumn

DefaultTableMapping::getExtraColumns

public DefaultTableMapping::getExtraColumns($table_name) Gets a list of extra database columns, which store denormalized data. These database columns do not belong to any entity fields. Any normalized data that is stored should be associated with an entity field. Parameters string $table_name: The name of the table to return the columns for. Return value string[] An array of column names for the given table. Overrides TableMappingInterface::getExtraColumns File core/lib/Drupal/Core/Entity/Sql

DefaultTableMapping::getDedicatedTableNames

public DefaultTableMapping::getDedicatedTableNames() Gets a list of dedicated table names for this mapping. Return value string[] An array of table names. File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 297 Class DefaultTableMapping Defines a default table mapping class. Namespace Drupal\Core\Entity\Sql Code public function getDedicatedTableNames() { $table_mapping = $this; $definitions = array_filter($this->fieldStorageDefinitions, function($definition) use

DefaultTableMapping::getDedicatedRevisionTableName

public DefaultTableMapping::getDedicatedRevisionTableName(FieldStorageDefinitionInterface $storage_definition, $is_deleted = FALSE) Generates a table name for a field revision archive table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. bool $is_deleted: (optional) Whether the table name holding the values of a deleted field should be returned. Return value string A string containing the generated name for the database table.

DefaultTableMapping::getDedicatedDataTableName

public DefaultTableMapping::getDedicatedDataTableName(FieldStorageDefinitionInterface $storage_definition, $is_deleted = FALSE) Generates a table name for a field data table. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. bool $is_deleted: (optional) Whether the table name holding the values of a deleted field should be returned. Return value string A string containing the generated name for the database table. File core/lib/Dr

DefaultTableMapping::getColumnNames

public DefaultTableMapping::getColumnNames($field_name) Gets a mapping of field columns to database columns for a given field. Parameters string $field_name: The name of the entity field to return the column mapping for. Return value string[] The keys of this array are the keys of the array returned by FieldStorageDefinitionInterface::getColumns() while the respective values are the names of the database columns for this table mapping. Overrides TableMappingInterface::getColumnNames File core

DefaultTableMapping::getAllColumns

public DefaultTableMapping::getAllColumns($table_name) Gets a list of all database columns for a given table. Parameters string $table_name: The name of the table to return the columns for. Return value string[] An array of database column names for this table. Both field columns and extra columns are returned. Overrides TableMappingInterface::getAllColumns File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 102 Class DefaultTableMapping Defines a default table mapping cla