function EntityReferenceUuidItem::schema

Overrides EntityReferenceItem::schema

File

core/modules/jsonapi/tests/modules/jsonapi_test_field_type/src/Plugin/Field/FieldType/EntityReferenceUuidItem.php, line 77

Class

EntityReferenceUuidItem
Defines the 'entity_reference_uuid' entity field type.

Namespace

Drupal\jsonapi_test_field_type\Plugin\Field\FieldType

Code

public static function schema(FieldStorageDefinitionInterface $field_definition) {
  $columns = [
    'target_uuid' => [
      'description' => 'The UUID of the target entity.',
      'type' => 'varchar_ascii',
      'length' => 128,
    ],
  ];
  return [
    'columns' => $columns,
    'indexes' => [
      'target_uuid' => [
        'target_uuid',
      ],
    ],
  ];
}

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