Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
locale.services.yml
locale.plural.formula
Class
Drupal\locale\PluralFormula
2 string references to
locale.plural.formula
PluralTranslatableMarkup::getPluralIndex
in core/
lib/
Drupal/
Core/
StringTranslation/
PluralTranslatableMarkup.php
Gets the plural index through the gettext formula.
StringTranslationTrait::getNumberOfPlurals
in core/
lib/
Drupal/
Core/
StringTranslation/
StringTranslationTrait.php
Returns the number of plurals supported by a given language.
File
core/
modules/
locale/
locale.services.yml
View source
class:
Drupal\locale\PluralFormula
arguments:
- '@language_manager'
- '@state'
RSS feed