public function IngredientUnitUtility::__construct in Recipe 8.2
Constructs a new IngredientUnitUtility object.
Parameters
\Drupal\Core\Config\ConfigFactory $config_factory: The config.factory service.
File
- modules/
ingredient/ src/ Utility/ IngredientUnitUtility.php, line 25
Class
- IngredientUnitUtility
- Provides the ingredient.unit service.
Namespace
Drupal\ingredient\UtilityCode
public function __construct(ConfigFactory $config_factory) {
$this->ingredientUnitConfig = $config_factory
->get('ingredient.units');
}