public static function BricksFieldTypeTrait::propertyDefinitions in Bricks 8
File
- src/
Plugin/ Field/ FieldType/ BricksFieldTypeTrait.php, line 33
Class
Namespace
Drupal\bricks\Plugin\Field\FieldTypeCode
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;
}