function TaxonomyTranslationTestTrait::setupLanguages

Adds additional languages.

File

core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php, line 60

Class

TaxonomyTranslationTestTrait
Provides common testing base for translated taxonomy terms.

Namespace

Drupal\taxonomy\Tests

Code

protected function setupLanguages() {
  ConfigurableLanguage::createFromLangcode($this->translateToLangcode)
    ->save();
  $this->rebuildContainer();
}

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