Search for formula
- Search 7.x for formula
- Search 9.5.x for formula
- Search 8.9.x for formula
- Search 11.x for formula
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
locale.plural.formula | service | core/ |
Drupal\locale\PluralFormula |
PluralFormula | class | core/ |
Manages the storage of plural formula per language in state. |
PluralFormula.php | file | core/ |
|
PluralFormula::$formulae | property | core/ |
The plural formula and count keyed by langcode. |
PluralFormula::$languageManager | property | core/ |
|
PluralFormula::$state | property | core/ |
|
PluralFormula::getFormula | function | core/ |
|
PluralFormula::getNumberOfPlurals | function | core/ |
|
PluralFormula::loadFormulae | function | core/ |
Loads the formulae and stores them on the PluralFormula object if not set. |
PluralFormula::reset | function | core/ |
|
PluralFormula::setPluralFormula | function | core/ |
|
PluralFormula::__construct | function | core/ |
|
PluralFormulaInterface | interface | core/ |
An interface for a service providing plural formulae. |
PluralFormulaInterface.php | file | core/ |
|
PluralFormulaInterface::getFormula | function | core/ |
Gets the plural formula for a langcode. |
PluralFormulaInterface::getNumberOfPlurals | function | core/ |
Returns the number of plurals supported by a given language. |
PluralFormulaInterface::reset | function | core/ |
Resets the static formulae cache. |
PluralFormulaInterface::setPluralFormula | function | core/ |
|
PoHeader::tokenizeFormula | function | core/ |
Tokenize the formula. |
PoHeaderTest::providerTestPluralsFormula | function | core/ |
Data provider for testPluralsFormula. |
PoHeaderTest::testPluralsFormula | function | core/ |
Tests that plural expressions are evaluated correctly. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.