function KeyColumn::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/SchemaDefinition/KeyColumn.php \Drupal\Core\Database\SchemaDefinition\KeyColumn::__construct()
Constructor.
Parameters
string $name: The column name.
int|null $length: (Optional) if set, specifies a prefix of the named column.
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ KeyColumn.php, line 20
Class
- KeyColumn
- Describes a column of a database index or key.
Namespace
Drupal\Core\Database\SchemaDefinitionCode
public function __construct(public readonly string $name, public readonly ?int $length = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.