function PluralFormulaInterface::getFormula
Same name in other branches
- 9 core/modules/locale/src/PluralFormulaInterface.php \Drupal\locale\PluralFormulaInterface::getFormula()
- 10 core/modules/locale/src/PluralFormulaInterface.php \Drupal\locale\PluralFormulaInterface::getFormula()
- 11.x core/modules/locale/src/PluralFormulaInterface.php \Drupal\locale\PluralFormulaInterface::getFormula()
Gets the plural formula for a langcode.
Parameters
string $langcode: The language code to get the formula for.
Return value
array An array of formulae.
1 method overrides PluralFormulaInterface::getFormula()
- PluralFormula::getFormula in core/
modules/ locale/ src/ PluralFormula.php - Gets the plural formula for a langcode.
File
-
core/
modules/ locale/ src/ PluralFormulaInterface.php, line 44
Class
- PluralFormulaInterface
- An interface for a service providing plural formulae.
Namespace
Drupal\localeCode
public function getFormula($langcode);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.