You are here

public static function BricksFieldTypeTrait::propertyDefinitions in Bricks​ 2.x

File

src/BricksFieldTypeTrait.php, line 33

Class

BricksFieldTypeTrait

Namespace

Drupal\bricks

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
  $properties = parent::propertyDefinitions($field_definition);
  $properties['depth'] = DataDefinition::create('integer')
    ->setLabel(t('Depth'));
  $properties['options'] = DataDefinition::create('any')
    ->setLabel(t('Options'));
  return $properties;
}