function KeyColumn::toArray

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/SchemaDefinition/KeyColumn.php \Drupal\Core\Database\SchemaDefinition\KeyColumn::toArray()

The key column cannot be converted to an array.

Return value

array The legacy array-based specification.

Throws

\LogicException

Overrides SchemaDefinitionInterface::toArray

File

core/lib/Drupal/Core/Database/SchemaDefinition/KeyColumn.php, line 31

Class

KeyColumn
Describes a column of a database index or key.

Namespace

Drupal\Core\Database\SchemaDefinition

Code

public function toArray() : array {
  throw new \LogicException(__METHOD__ . ' is not implemented');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.