function Table::columnNames
Returns the names of the columns in this table.
Return value
list<string> The names of the columns.
1 call to Table::columnNames()
- Table::validate in core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Table.php - Validates the properties of the value object.
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ Table.php, line 105
Class
- Table
- Describes a database table.
Namespace
Drupal\Core\Database\SchemaDefinitionCode
public function columnNames() : array {
return array_map(fn(Column $column): string => $column->name, $this->columns);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.