function Schema::tableNames
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/SchemaDefinition/Schema.php \Drupal\Core\Database\SchemaDefinition\Schema::tableNames()
Returns the names of the tables.
Return value
list<string> The names of the tables.
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Schema.php, line 52
Class
- Schema
- Describes a database schema as a collection of database objects.
Namespace
Drupal\Core\Database\SchemaDefinitionCode
public function tableNames() : array {
return array_map(fn(Table $table): string => $table->name, $this->tables);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.