Manages the storage of plural formula per language in state.
Hierarchy
- class \Drupal\locale\PluralFormula implements PluralFormulaInterface
See also
\Drupal\locale\PoDatabaseWriter::setHeader()
File
- core/modules/locale/src/PluralFormula.php, line 13
Namespace
Drupal\locale
Members
Name | Modifiers | Type | Description |
---|---|---|---|
PluralFormula::$formulae | protected | property | The plural formula and count keyed by langcode. |
PluralFormula::$languageManager | protected | property | |
PluralFormula::$state | protected | property | |
PluralFormula::getFormula | public | function | Gets the plural formula for a langcode. Overrides PluralFormulaInterface::getFormula |
PluralFormula::getNumberOfPlurals | public | function | Returns the number of plurals supported by a given language. Overrides PluralFormulaInterface::getNumberOfPlurals |
PluralFormula::loadFormulae | protected | function | Loads the formulae and stores them on the PluralFormula object if not set. |
PluralFormula::reset | public | function | Resets the static formulae cache. Overrides PluralFormulaInterface::reset |
PluralFormula::setPluralFormula | public | function | Overrides PluralFormulaInterface::setPluralFormula |
PluralFormula::__construct | public | function |
Please login to continue.