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