You are here

public function TestDefaultTableMapping::setFieldNames in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php \Drupal\Tests\Core\Entity\Sql\TestDefaultTableMapping::setFieldNames()

Adds field 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 the table to add the field column for.

string[] $field_names: A list of field names to add the columns for.

Return value

$this

Overrides DefaultTableMapping::setFieldNames

See also

https://www.drupal.org/node/3067336

File

core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php, line 611

Class

TestDefaultTableMapping
Extends DefaultTableMapping to allow calling its protected methods.

Namespace

Drupal\Tests\Core\Entity\Sql

Code

public function setFieldNames($table_name, array $field_names) {
  return parent::setFieldNames($table_name, $field_names);
}