function InstallerExistingConfigSyncDirectoryMultilingualTest::getPo
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryMultilingualTest::getPo()
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryMultilingualTest.php \Drupal\FunctionalTests\Installer\InstallerExistingConfigSyncDirectoryMultilingualTest::getPo()
Returns the string for the test .po file.
Parameters
string $langcode: The language code.
Return value
string Contents for the test .po file.
1 call to InstallerExistingConfigSyncDirectoryMultilingualTest::getPo()
- InstallerExistingConfigSyncDirectoryMultilingualTest::prepareEnvironment in core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryMultilingualTest.php - Prepares the current environment for running the test.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerExistingConfigSyncDirectoryMultilingualTest.php, line 198
Class
- InstallerExistingConfigSyncDirectoryMultilingualTest
- Verifies that installing from existing configuration works.
Namespace
Drupal\FunctionalTests\InstallerCode
protected function getPo($langcode) : string {
return <<<PO
msgid ""
msgstr ""
msgid "Anonymous"
msgstr "Anonymous {<span class="php-variable">$langcode</span>}"
msgid "Apply"
msgstr "Aplicar"
PO;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.