You are here

public function PluralFormulaInterface::setPluralFormula in Drupal 9

Same name and namespace in other branches
  1. 8 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\locale

Code

public function setPluralFormula($langcode, $plural_count, array $formula);