You are here

public function StringTranslation::getNumberOfPlurals in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/StringTranslation/StringTranslation.php \Drupal\service_container\StringTranslation\StringTranslation::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.

Overrides TranslationInterface::getNumberOfPlurals

File

src/StringTranslation/StringTranslation.php, line 61
Contains \Drupal\service_container\StringTranslation\StringTranslation.

Class

StringTranslation
Provides a t() based string translation.

Namespace

Drupal\service_container\StringTranslation

Code

public function getNumberOfPlurals($langCode = NULL) {
  throw new \BadMethodCallException('StringTranslation::getNumberOfPlurals is not implemented.');
}