function PluralFormula::__construct

Same name in other branches
  1. 9 core/modules/locale/src/PluralFormula.php \Drupal\locale\PluralFormula::__construct()
  2. 8.9.x core/modules/locale/src/PluralFormula.php \Drupal\locale\PluralFormula::__construct()
  3. 10 core/modules/locale/src/PluralFormula.php \Drupal\locale\PluralFormula::__construct()

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\State\StateInterface $state: The state.

File

core/modules/locale/src/PluralFormula.php, line 50

Class

PluralFormula
Manages the storage of plural formula per language in state.

Namespace

Drupal\locale

Code

public function __construct(LanguageManagerInterface $language_manager, StateInterface $state) {
    $this->languageManager = $language_manager;
    $this->state = $state;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.