function LocaleNonInteractiveInstallTest::getTranslationFileContents

Returns the contents of the translation file.

This method should be overridden by the test class to provide a translation file that will be used during the installation.

Return value

string The contents of the translation file.

Overrides InstallerLanguageTrait::getTranslationFileContents

File

core/modules/locale/tests/src/Functional/LocaleNonInteractiveInstallTest.php, line 34

Class

LocaleNonInteractiveInstallTest
Tests installing in a different language with a non-dev version string.

Namespace

Drupal\Tests\locale\Functional

Code

protected function getTranslationFileContents() : string {
  return <<<PO
  msgid ""
  msgstr ""
  
  msgid "Log in"
  msgstr "Anmelden"
  
  PO;
}

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