You are here

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\Utility

Code

public function __construct(ConfigFactory $config_factory) {
  $this->ingredientUnitConfig = $config_factory
    ->get('ingredient.units');
}