function PluralFormulaInterface::setPluralFormula

Same name and namespace in other branches
  1. 9 core/modules/locale/src/PluralFormulaInterface.php \Drupal\locale\PluralFormulaInterface::setPluralFormula()
  2. 8.9.x core/modules/locale/src/PluralFormulaInterface.php \Drupal\locale\PluralFormulaInterface::setPluralFormula()
  3. 10 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.

File

core/modules/locale/src/PluralFormulaInterface.php, line 21

Class

PluralFormulaInterface
An interface for a service providing plural formulae.

Namespace

Drupal\locale

Code

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.