public function StringTranslation::getNumberOfPlurals in Service Container 7.2
Same name and namespace in other branches
- 7 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\StringTranslationCode
public function getNumberOfPlurals($langCode = NULL) {
throw new \BadMethodCallException('StringTranslation::getNumberOfPlurals is not implemented.');
}