function InstallerLanguageTrait::getInstallLangcode

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Traits/Core/Locale/InstallerLanguageTrait.php \Drupal\Tests\Traits\Core\Locale\InstallerLanguageTrait::getInstallLangcode()

Gets the langcode to install Drupal with.

Return value

string The langcode to install Drupal with.

1 call to InstallerLanguageTrait::getInstallLangcode()
InstallerLanguageTrait::installParameters in core/tests/Drupal/Tests/Traits/Core/Locale/InstallerLanguageTrait.php
3 methods override InstallerLanguageTrait::getInstallLangcode()
HelpTopicTranslatedTestBase::getInstallLangcode in core/modules/help/tests/src/Functional/HelpTopicTranslatedTestBase.php
Gets the langcode to install Drupal with.
LocaleThemeInstallTest::getInstallLangcode in core/modules/locale/tests/src/Functional/LocaleThemeInstallTest.php
Gets the langcode to install Drupal with.
NodeTypeTranslationTest::getInstallLangcode in core/modules/node/tests/src/Functional/NodeTypeTranslationTest.php
Gets the langcode to install Drupal with.

File

core/tests/Drupal/Tests/Traits/Core/Locale/InstallerLanguageTrait.php, line 18

Class

InstallerLanguageTrait
A trait to install Drupal in a specific language.

Namespace

Drupal\Tests\Traits\Core\Locale

Code

abstract protected function getInstallLangcode() : string;

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