PluralFormulaInterface
interface PluralFormulaInterface (View source)
An interface for a service providing plural formulae.
Methods
setPluralFormula(string $langcode, int $plural_count, array $formula)
No description
int
getNumberOfPlurals(null|string $langcode = NULL)
Returns the number of plurals supported by a given language.
array
getFormula(string $langcode)
Gets the plural formula for a langcode.
reset()
Resets the static formulae cache.
Details
PluralFormulaInterface
setPluralFormula(string $langcode, int $plural_count, array $formula)
No description
int
getNumberOfPlurals(null|string $langcode = NULL)
Returns the number of plurals supported by a given language.
array
getFormula(string $langcode)
Gets the plural formula for a langcode.
PluralFormulaInterface
reset()
Resets the static formulae cache.