public function TableMappingInterface::getColumnNames

public TableMappingInterface::getColumnNames($field_name)

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.

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

public function getColumnNames($field_name);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!TableMappingInterface.php/function/TableMappingInterface::getColumnNames/8.1.x