function PluralFormula::loadFormulae
Loads the formulae and stores them on the PluralFormula object if not set.
File
-
core/
modules/ locale/ src/ PluralFormula.php, line 97
Class
- PluralFormula
- Manages the storage of plural formula per language in state.
Namespace
Drupal\localeCode
protected function loadFormulae() {
if (!isset($this->formulae)) {
$this->formulae = $this->state
->get('locale.translation.formulae', []);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.