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.
1 call to Schema::tableNames()
- Schema::validate in core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Schema.php - Validates the properties of the value object.
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Schema.php, line 54
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.