public static function BricksFieldTypeTrait::propertyDefinitions in Bricks 2.x
File
- src/
BricksFieldTypeTrait.php, line 33
Class
Namespace
Drupal\bricksCode
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;
}