public function TestSqlContentDefaultTableMapping::setExtraColumns in Drupal 8
Adds a extra columns for a table to the table mapping.
@internal
@todo Make this method protected in drupal:9.0.0.
Parameters
string $table_name: The name of table to add the extra columns for.
string[] $column_names: The list of column names.
Return value
$this
Overrides DefaultTableMapping::setExtraColumns
See also
https://www.drupal.org/node/3067336
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaTest.php, line 1700
Class
- TestSqlContentDefaultTableMapping
- Extends DefaultTableMapping to allow calling its protected methods.
Namespace
Drupal\Tests\Core\Entity\SqlCode
public function setExtraColumns($table_name, array $column_names) {
return parent::setExtraColumns($table_name, $column_names);
}