PluralFormula::$formulae

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

The plural formula and count keyed by langcode.

For example the structure looks like this:

[
    'de' => [
        'plurals' => 2,
        'formula' => [],
    ],
];

Type: array

File

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

Class

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

Namespace

Drupal\locale

Code

protected $formulae;

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