public function TestDefaultTableMapping::setExtraColumns in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php \Drupal\Tests\Core\Entity\Sql\TestDefaultTableMapping::setExtraColumns()
Adds 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/ DefaultTableMappingTest.php, line 618
Class
- TestDefaultTableMapping
- 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);
}