private function CommentFullViewFiltersFieldsTest::addLanguages in Translation Views 8
Adds languages to Drupal.
Parameters
array $langcodes: Langcodes that should be added to Drupal.
Throws
\Drupal\Core\Entity\EntityStorageException
1 call to CommentFullViewFiltersFieldsTest::addLanguages()
- CommentFullViewFiltersFieldsTest::setUp in tests/
src/ Functional/ CommentFullViewFiltersFieldsTest.php
File
- tests/
src/ Functional/ CommentFullViewFiltersFieldsTest.php, line 78
Class
- CommentFullViewFiltersFieldsTest
- Tests for fields, filters and sorting for comment entity.
Namespace
Drupal\Tests\translation_views\FunctionalCode
private function addLanguages(array $langcodes) {
foreach ($langcodes as $langcode) {
ConfigurableLanguage::createFromLangcode($langcode)
->save();
}
}