You are here

public static function BricksFieldTypeTrait::schema in Bricks​ 8

File

src/Plugin/Field/FieldType/BricksFieldTypeTrait.php, line 13

Class

BricksFieldTypeTrait

Namespace

Drupal\bricks\Plugin\Field\FieldType

Code

public static function schema(FieldStorageDefinitionInterface $field_definition) {
  $schema = parent::schema($field_definition);
  $schema['columns']['depth'] = [
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => TRUE,
  ];
  $schema['columns']['options'] = [
    'type' => 'blob',
    'size' => 'normal',
    'not null' => FALSE,
    'serialize' => TRUE,
  ];
  return $schema;
}