class TestSqlContentDefaultTableMapping in Drupal 8
Extends DefaultTableMapping to allow calling its protected methods.
Hierarchy
- class \Drupal\Core\Entity\Sql\DefaultTableMapping implements TableMappingInterface
- class \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping
Expanded class hierarchy of TestSqlContentDefaultTableMapping
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php, line 1688
Namespace
Drupal\Tests\Core\Entity\SqlView source
class TestSqlContentDefaultTableMapping extends DefaultTableMapping {
/**
* {@inheritdoc}
*/
public function setFieldNames($table_name, array $field_names) {
return parent::setFieldNames($table_name, $field_names);
}
/**
* {@inheritdoc}
*/
public function setExtraColumns($table_name, array $column_names) {
return parent::setExtraColumns($table_name, $column_names);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultTableMapping:: |
protected | property | A list of all database columns per table. | |
DefaultTableMapping:: |
protected | property | The base table of the entity. | |
DefaultTableMapping:: |
protected | property | A mapping of column names per field name. | |
DefaultTableMapping:: |
protected | property | The table that stores field data, if the entity has multilingual support. | |
DefaultTableMapping:: |
protected | property | The entity type definition. | |
DefaultTableMapping:: |
protected | property | A list of database columns which store denormalized data per table. | |
DefaultTableMapping:: |
protected | property | A list of field names per table. | |
DefaultTableMapping:: |
protected | property | The field storage definitions of this mapping. | |
DefaultTableMapping:: |
protected | property | The prefix to be used by all the tables of this mapping. | |
DefaultTableMapping:: |
protected | property | The table that stores revision field data if the entity supports revisions and has multilingual support. | |
DefaultTableMapping:: |
protected | property | The table that stores revisions, if the entity supports revisions. | |
DefaultTableMapping:: |
public | function | Checks whether the given field can be stored in a shared table. | |
DefaultTableMapping:: |
public static | function | Initializes the table mapping. | |
DefaultTableMapping:: |
protected | function | Generates a safe and unambiguous field table name. | 1 |
DefaultTableMapping:: |
public | function |
Gets a list of all database columns for a given table. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function | Gets the base table name. | |
DefaultTableMapping:: |
public | function |
Gets a mapping of field columns to database columns for a given field. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function | Gets the data table name. | |
DefaultTableMapping:: |
public | function | Generates a table name for a field data table. | |
DefaultTableMapping:: |
public | function | Generates a table name for a field revision archive table. | |
DefaultTableMapping:: |
public | function | Gets a list of dedicated table names for this mapping. | |
DefaultTableMapping:: |
public | function |
Gets a list of extra database columns, which store denormalized data. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function |
Generates a column name for a field property. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function |
Gets a list of names for entity fields stored in the specified table. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function |
Gets the table name for a given column. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function |
Gets the list of columns that can not be used as field type columns. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function | Gets the revision data table name. | |
DefaultTableMapping:: |
public | function | Gets the revision table name. | |
DefaultTableMapping:: |
public | function |
Gets a list of table names for this mapping. Overrides TableMappingInterface:: |
|
DefaultTableMapping:: |
public | function | Checks whether the given field has to be stored in a dedicated table. | |
DefaultTableMapping:: |
public | function | Constructs a DefaultTableMapping. | |
TableMappingInterface:: |
constant | A property that represents delta used in entity query conditions. | ||
TestSqlContentDefaultTableMapping:: |
public | function |
Adds a extra columns for a table to the table mapping. Overrides DefaultTableMapping:: |
|
TestSqlContentDefaultTableMapping:: |
public | function |
Adds field columns for a table to the table mapping. Overrides DefaultTableMapping:: |