public function DefaultTableMapping::getTableNames

public DefaultTableMapping::getTableNames()

Gets a list of table names for this mapping.

Return value

string[] An array of table names.

Overrides TableMappingInterface::getTableNames

File

core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 95

Class

DefaultTableMapping
Defines a default table mapping class.

Namespace

Drupal\Core\Entity\Sql

Code

public function getTableNames() {
  return array_unique(array_merge(array_keys($this->fieldNames), array_keys($this->extraColumns)));
}

© 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!DefaultTableMapping.php/function/DefaultTableMapping::getTableNames/8.1.x