public function IngredientUnitFuzzymatch::__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/ IngredientUnitFuzzymatch.php, line 25
Class
- IngredientUnitFuzzymatch
- Provides the ingredient.fuzzymatch service.
Namespace
Drupal\ingredient\UtilityCode
public function __construct(ConfigFactory $config_factory) {
$this->ingredientUnitConfig = $config_factory
->get('ingredient.units');
}