You are here

public function TranslationMock::getNumberOfPlurals in Plugin 8.2

File

tests/src/Unit/TranslationMock.php, line 48

Class

TranslationMock
Provides a mock implementation of \Drupal\Core\StringTranslation\TranslationInterface.

Namespace

Drupal\Tests\plugin\Unit

Code

public function getNumberOfPlurals($langcode = NULL) {
  return mt_rand();
}