8.2.x StringTranslationTrait.php protected StringTranslationTrait::formatPlural($count, $singular, $plural, array $args = array(), array $options = array())
8.0.x StringTranslationTrait.php protected StringTranslationTrait::formatPlural($count, $singular, $plural, array $args = array(), array $options = array())
8.1.x StringTranslationTrait.php protected StringTranslationTrait::formatPlural($count, $singular, $plural, array $args = array(), array $options = array())
8.3.x StringTranslationTrait.php protected StringTranslationTrait::formatPlural($count, $singular, $plural, array $args = [], array $options = [])

Formats a string containing a count of items.

See also

\Drupal\Core\StringTranslation\TranslationInterface::formatPlural()

42 calls to StringTranslationTrait::formatPlural()
AggregatorController::adminOverview in core/modules/aggregator/src/Controller/AggregatorController.php
Displays the aggregator administration page.
BlockContentDeleteForm::buildForm in core/modules/block_content/src/Form/BlockContentDeleteForm.php
Form constructor.
BlockContentTypeDeleteForm::buildForm in core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php
Form constructor.
BulkForm::viewsFormSubmit in core/modules/system/src/Plugin/views/field/BulkForm.php
Submit handler for the bulk form.
CommentLinkBuilder::buildCommentedEntityLinks in core/modules/comment/src/CommentLinkBuilder.php

... See full list

File

core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 79

Class

StringTranslationTrait
Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface.

Namespace

Drupal\Core\StringTranslation

Code

protected function formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) {
  return new PluralTranslatableMarkup($count, $singular, $plural, $args, $options, $this->getStringTranslation());
}