You are here

function TMGMTTestBase::addLanguage in Translation Management Tool 8

Sets the proper environment.

Currently just adds a new language.

Parameters

string $langcode: The language code.

File

src/Tests/TMGMTTestBase.php, line 196

Class

TMGMTTestBase
Base class for tests.

Namespace

Drupal\tmgmt\Tests

Code

function addLanguage($langcode) {
  $language = ConfigurableLanguage::createFromLangcode($langcode);
  $language
    ->save();
}