class TestSqlContentDefaultTableMapping

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping
  2. 8.9.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping
  3. 11.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping

Extends DefaultTableMapping to allow calling its protected methods.

Hierarchy

Expanded class hierarchy of TestSqlContentDefaultTableMapping

File

core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php, line 1666

Namespace

Drupal\Tests\Core\Entity\Sql
View 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

Title Sort descending Modifiers Object type Summary Overriden Title
DefaultTableMapping::$allColumns protected property A list of all database columns per table.
DefaultTableMapping::$baseTable protected property The base table of the entity.
DefaultTableMapping::$columnMapping protected property A mapping of column names per field name.
DefaultTableMapping::$dataTable protected property The table that stores field data, if the entity has multilingual support.
DefaultTableMapping::$entityType protected property The entity type definition.
DefaultTableMapping::$extraColumns protected property A list of database columns which store denormalized data per table.
DefaultTableMapping::$fieldNames protected property A list of field names per table.
DefaultTableMapping::$fieldStorageDefinitions protected property The field storage definitions of this mapping.
DefaultTableMapping::$prefix protected property The prefix to be used by all the tables of this mapping.
DefaultTableMapping::$revisionDataTable protected property The table that stores revision field data.
DefaultTableMapping::$revisionTable protected property The table that stores revisions, if the entity supports revisions.
DefaultTableMapping::allowsSharedTableStorage public function Checks whether the given field can be stored in a shared table.
DefaultTableMapping::create public static function Initializes the table mapping.
DefaultTableMapping::generateFieldTableName protected function Generates a safe and unambiguous field table name.
DefaultTableMapping::getAllColumns public function Overrides TableMappingInterface::getAllColumns
DefaultTableMapping::getAllFieldTableNames public function Overrides TableMappingInterface::getAllFieldTableNames
DefaultTableMapping::getBaseTable public function Gets the base table name.
DefaultTableMapping::getColumnNames public function Overrides TableMappingInterface::getColumnNames
DefaultTableMapping::getDataTable public function Gets the data table name.
DefaultTableMapping::getDedicatedDataTableName public function Generates a table name for a field data table.
DefaultTableMapping::getDedicatedRevisionTableName public function Generates a table name for a field revision archive table.
DefaultTableMapping::getDedicatedTableNames public function Gets a list of dedicated table names for this mapping.
DefaultTableMapping::getExtraColumns public function Overrides TableMappingInterface::getExtraColumns
DefaultTableMapping::getFieldColumnName public function Overrides TableMappingInterface::getFieldColumnName
DefaultTableMapping::getFieldNames public function Overrides TableMappingInterface::getFieldNames
DefaultTableMapping::getFieldTableName public function Overrides TableMappingInterface::getFieldTableName
DefaultTableMapping::getReservedColumns public function Overrides TableMappingInterface::getReservedColumns
DefaultTableMapping::getRevisionDataTable public function Gets the revision data table name.
DefaultTableMapping::getRevisionTable public function Gets the revision table name.
DefaultTableMapping::getTableNames public function Overrides TableMappingInterface::getTableNames
DefaultTableMapping::requiresDedicatedTableStorage public function Checks whether the given field has to be stored in a dedicated table.
DefaultTableMapping::__construct public function Constructs a DefaultTableMapping.
TableMappingInterface::DELTA constant A property that represents delta used in entity query conditions.
TestSqlContentDefaultTableMapping::setExtraColumns public function Overrides DefaultTableMapping::setExtraColumns
TestSqlContentDefaultTableMapping::setFieldNames public function Overrides DefaultTableMapping::setFieldNames

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.