You are here

protected function StringTranslationTrait::formatPlural in Simple hierarchical select 2.0.x

File

src/StringTranslationTrait.php, line 46

Class

StringTranslationTrait
Custom enhancements for the StringTranslationTrait.

Namespace

Drupal\shs

Code

protected function formatPlural($count, $singular, $plural, array $args = [], array $options = []) {
  if (empty($options['context'])) {
    $options['context'] = $this->translationContext;
  }
  return $this
    ->formatPluralCore($count, $singular, $plural, $args, $options);
}