You are here

service ingredient.unit in Recipe 8.2

Class

Drupal\ingredient\Utility\IngredientUnitUtility
3 string references to ingredient.unit
IngredientFormatter::create in modules/ingredient/src/Plugin/Field/FieldFormatter/IngredientFormatter.php
Creates an instance of the plugin.
IngredientItem::processDefaultUnit in modules/ingredient/src/Plugin/Field/FieldType/IngredientItem.php
Sets the options of the default_unit form element.
IngredientWidget::create in modules/ingredient/src/Plugin/Field/FieldWidget/IngredientWidget.php
Creates an instance of the plugin.

File

modules/ingredient/ingredient.services.yml
modules/ingredient/ingredient.services.yml

View source
  1. class: Drupal\ingredient\Utility\IngredientUnitUtility
  2. arguments:
  3. - '@config.factory'