public function TestSqlContentDefaultTableMapping::setFieldNames in Drupal 8
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/ SqlContentEntityStorageSchemaTest.php, line 1693
Class
- TestSqlContentDefaultTableMapping
- Extends DefaultTableMapping to allow calling its protected methods.
Namespace
Drupal\Tests\Core\Entity\SqlCode
public function setFieldNames($table_name, array $field_names) {
return parent::setFieldNames($table_name, $field_names);
}