function TestSqlContentDefaultTableMapping::setFieldNames

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping::setFieldNames()
  2. 10 core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping::setFieldNames()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php \Drupal\Tests\Core\Entity\Sql\TestSqlContentDefaultTableMapping::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

File

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

Class

TestSqlContentDefaultTableMapping
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);
}

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