public function PluralFormulaInterface::setPluralFormula in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 26 - Contains \Drupal\locale\PluralFormulaInterface.
Class
- PluralFormulaInterface
- An interface for a service providing plural formulae.
Namespace
Drupal\localeCode
public function setPluralFormula($langcode, $plural_count, array $formula);