PluralFormulaInterface::getNumberOfPlurals

public PluralFormulaInterface::getNumberOfPlurals($langcode = NULL)

Returns the number of plurals supported by a given language.

Parameters

null|string $langcode: (optional) The language code. If not provided, the current language will be used.

Return value

int Number of plural variants supported by the given language.

File

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

Class

PluralFormulaInterface
An interface for a service providing plural formulae.

Namespace

Drupal\locale

Code

public function getNumberOfPlurals($langcode = NULL);
doc_Drupal
2016-10-29 09:34:16
Comments
Leave a Comment

Please login to continue.