You are here

public function FieldStorageConfig::getColumns in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getColumns()

Returns the field columns, as defined in the field schema.

Return value

array[] The array of field columns, keyed by column name, in the same format returned by getSchema().

Overrides FieldStorageDefinitionInterface::getColumns

See also

\Drupal\Core\Field\FieldStorageDefinitionInterface::getSchema()

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 489

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getColumns() {
  $schema = $this
    ->getSchema();
  return $schema['columns'];
}