function PrimaryKey::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/SchemaDefinition/PrimaryKey.php \Drupal\Core\Database\SchemaDefinition\PrimaryKey::__construct()
Constructor.
Parameters
list<KeyColumn|string> $columns: A mix of key column specifiers, being KeyColumn objects or strings naming columns.
Overrides KeyBase::__construct
File
-
core/
lib/ Drupal/ Core/ Database/ SchemaDefinition/ PrimaryKey.php, line 19
Class
- PrimaryKey
- Describes a table's primary key.
Namespace
Drupal\Core\Database\SchemaDefinitionCode
public function __construct(array $columns) {
parent::__construct($columns, FALSE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.