You are here

public static function IngredientItem::defaultFieldSettings in Recipe 8.2

Defines the field-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides EntityReferenceItem::defaultFieldSettings

File

modules/ingredient/src/Plugin/Field/FieldType/IngredientItem.php, line 39

Class

IngredientItem
Plugin implementation of the 'ingredient' field type.

Namespace

Drupal\ingredient\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'default_unit' => '',
    'unit_sets' => [],
  ] + parent::defaultFieldSettings();
}