You are here

service locale.plural.formula in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/locale.services.yml \locale.plural.formula
  2. 9 core/modules/locale/locale.services.yml \locale.plural.formula

Class

Drupal\locale\PluralFormula
7 string references to locale.plural.formula
LocaleImportFunctionalTest::testStandalonePoFile in core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
Tests import of standalone .po files.
locale_get_plural in core/modules/locale/locale.module
Returns plural form index for a specific number.
NumericFormatPluralTest::testNumericFormatPlural in core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php
Tests plural formatting setting on a numeric views handler.
PluralTranslatableMarkup::getPluralIndex in core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php
Gets the plural index through the gettext formula.
PoDatabaseWriter::setHeader in core/modules/locale/src/PoDatabaseWriter.php
Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader().

... See full list

File

core/modules/locale/locale.services.yml
core/modules/locale/locale.services.yml

View source
  1. class: Drupal\locale\PluralFormula
  2. arguments:
  3. - '@language_manager'
  4. - '@state'