public function FieldInterface::getSchema

Returns the field schema.

Return value

array The field schema, as an array of key/value pairs in the format returned by hook_field_schema():

  • columns: An array of Schema API column specifications, keyed by column name. This specifies what comprises a single value for a given field. No assumptions should be made on how storage backends internally use the original column name to structure their storage.
  • indexes: An array of Schema API index definitions. Some storage backends might not support indexes.
  • foreign keys: An array of Schema API foreign key definitions. Note, however, that depending on the storage backend specified for the field, the field data is not necessarily stored in SQL.
1 method overrides FieldInterface::getSchema()
Field::getSchema in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php
Returns the field schema.

File

drupal/core/modules/field/lib/Drupal/field/FieldInterface.php, line 33
Contains \Drupal\field\FieldInterface.

Class

FieldInterface
Provides an interface defining a field entity.

Namespace

Drupal\field

Code

public function getSchema();