You are here

protected function StringTranslationTrait::formatPlural in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php \Drupal\Core\StringTranslation\StringTranslationTrait::formatPlural()

Formats a string containing a count of items.

See the \Drupal\Core\StringTranslation\TranslationInterface::formatPlural() documentation for details.

37 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
Builds links for the given entity.

... See full list

File

core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 83
Contains \Drupal\Core\StringTranslation\StringTranslationTrait.

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 $this
    ->getStringTranslation()
    ->formatPlural($count, $singular, $plural, $args, $options);
}