function TestTranslationManager::formatPlural

Same name in other branches
  1. 8.9.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::formatPlural()
  2. 10 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::formatPlural()
  3. 11.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::formatPlural()

Overrides TranslationInterface::formatPlural

File

core/modules/user/tests/src/Unit/PermissionHandlerTest.php, line 398

Class

TestTranslationManager
Implements a translation manager in tests.

Namespace

Drupal\Tests\user\Unit

Code

public function formatPlural($count, $singular, $plural, array $args = [], array $options = []) {
    return new PluralTranslatableMarkup($count, $singular, $plural, $args, $options, $this);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.