Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TranslatorTest.php

function TranslatorTest::getTranslator

10 calls to TranslatorTest::getTranslator()
TranslatorTest::testChoose in vendor/symfony/translation-contracts/Test/TranslatorTest.php
@dataProvider getChooseTests
TranslatorTest::testGetLocaleReturnsDefaultLocaleIfNotSet in vendor/symfony/translation-contracts/Test/TranslatorTest.php
@requires extension intl
TranslatorTest::testGetSetLocale in vendor/symfony/translation-contracts/Test/TranslatorTest.php
TranslatorTest::testInterval in vendor/symfony/translation-contracts/Test/TranslatorTest.php
@dataProvider getInterval
TranslatorTest::testReturnMessageIfExactlyOneStandardRuleIsGiven in vendor/symfony/translation-contracts/Test/TranslatorTest.php

... See full list

File

vendor/symfony/translation-contracts/Test/TranslatorTest.php, line 46

Class

TranslatorTest
Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms.

Namespace

Symfony\Contracts\Translation\Test

Code

public function getTranslator() : TranslatorInterface {
    return new class  implements TranslatorInterface {
        use TranslatorTrait;

};
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal