Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TableMappingInterface.php

function TableMappingInterface::getFieldNames

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

The return list is contains the entity field names, not database field (i.e. column) names. To get the mapping of specific entity field to database columns use ::getColumnNames().

Parameters

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

Return value

string[] An array of field names for the given table.

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 60

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

public function getFieldNames($table_name);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal