function TableMappingInterface::getFieldNames

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

Gets a list of names for entity fields stored in the specified table.

Parameters

string $table_name: The name of the table to return the field names for.

Return value

string[] A list of field names for the given table. Note these are entity field names, not database field (i.e. column) names. To get the mapping of a specific entity field to database columns, use ::getColumnNames().

1 method overrides TableMappingInterface::getFieldNames()
DefaultTableMapping::getFieldNames in core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
Gets a list of names for entity fields stored in the specified table.

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

public function getFieldNames($table_name);

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