StringTranslationTrait::formatPlural

protected StringTranslationTrait::formatPlural($count, $singular, $plural, array $args = array(), array $options = array())

Formats a string containing a count of items.

See also

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

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());
}
doc_Drupal
2016-10-29 09:45:19
Comments
Leave a Comment

Please login to continue.