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()); }
Please login to continue.