public function BaseFieldDefinition::getColumns in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::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/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php, line 689
Class
- BaseFieldDefinition
- A class for defining entity fields.
Namespace
Drupal\Core\FieldCode
public function getColumns() {
$schema = $this
->getSchema();
return $schema['columns'];
}