function TableMappingInterface::getColumnNames

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php \Drupal\Core\Entity\Sql\TableMappingInterface::getColumnNames()
  2. 10 core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php \Drupal\Core\Entity\Sql\TableMappingInterface::getColumnNames()
  3. 11.x core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php \Drupal\Core\Entity\Sql\TableMappingInterface::getColumnNames()

Gets a mapping of field columns to database columns for a given field.

Parameters

string $field_name: The name of the entity field to return the column mapping for.

Return value

string[] The keys of this array are the keys of the array returned by FieldStorageDefinitionInterface::getColumns() while the respective values are the names of the database columns for this table mapping.

1 method overrides TableMappingInterface::getColumnNames()
DefaultTableMapping::getColumnNames in core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
Gets a mapping of field columns to database columns for a given field.

File

core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php, line 73

Class

TableMappingInterface
Provides a common interface for mapping field columns to SQL tables.

Namespace

Drupal\Core\Entity\Sql

Code

public function getColumnNames($field_name);

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