PluralFormula::loadFormulae

protected PluralFormula::loadFormulae()

Loads the formulae and stores them on the PluralFormula object if not set.

Return value

[]

File

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

Class

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

Namespace

Drupal\locale

Code

protected function loadFormulae() {
  if (!isset($this->formulae)) {
    $this->formulae = $this->state->get('locale.translation.formulae', []);
  }
}
doc_Drupal
2016-10-29 09:34:15
Comments
Leave a Comment

Please login to continue.