You are here

public function DefaultTableMapping::getFieldNames in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::getFieldNames()

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

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.

Overrides TableMappingInterface::getFieldNames

1 call to DefaultTableMapping::getFieldNames()
DefaultTableMapping::getAllColumns in core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
Gets a list of all database columns for a given table.

File

core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 132
Contains \Drupal\Core\Entity\Sql\DefaultTableMapping.

Class

DefaultTableMapping
Defines a default table mapping class.

Namespace

Drupal\Core\Entity\Sql

Code

public function getFieldNames($table_name) {
  if (isset($this->fieldNames[$table_name])) {
    return $this->fieldNames[$table_name];
  }
  return array();
}