You are here

public function PluralFormulaInterface::getFormula in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 49
Contains \Drupal\locale\PluralFormulaInterface.

Class

PluralFormulaInterface
An interface for a service providing plural formulae.

Namespace

Drupal\locale

Code

public function getFormula($langcode);