You are here

public static function BricksFieldTypeTrait::propertyDefinitions in Bricks​ 8

File

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

Class

BricksFieldTypeTrait

Namespace

Drupal\bricks\Plugin\Field\FieldType

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;
}