You are here

public function TranslationInterface::getNumberOfPlurals in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/StringTranslation/TranslationInterface.php \Drupal\Core\StringTranslation\TranslationInterface::getNumberOfPlurals()

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.

1 method overrides TranslationInterface::getNumberOfPlurals()
StringTranslation::getNumberOfPlurals in src/StringTranslation/StringTranslation.php
Returns the number of plurals supported by a given language.

File

lib/Drupal/Core/StringTranslation/TranslationInterface.php, line 137
Contains \Drupal\Core\StringTranslation\TranslationInterface.

Class

TranslationInterface
Interface for the translation.manager translation service.

Namespace

Drupal\Core\StringTranslation

Code

public function getNumberOfPlurals($langcode = NULL);