protected function SimplesitemapTestBase::addLanguages in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x tests/src/Functional/SimplesitemapTestBase.php \Drupal\Tests\simple_sitemap\Functional\SimplesitemapTestBase::addLanguages()
1 call to SimplesitemapTestBase::addLanguages()
- SimplesitemapTest::testGenerationResume in tests/
src/ Functional/ SimplesitemapTest.php - @dataProvider generationResumeProvider
File
- tests/
src/ Functional/ SimplesitemapTestBase.php, line 130
Class
- SimplesitemapTestBase
- Provides the base class for web tests for Simple sitemap.
Namespace
Drupal\Tests\simple_sitemap\FunctionalCode
protected function addLanguages($langcodes = 'de') {
foreach ((array) $langcodes as $langcode) {
ConfigurableLanguage::createFromLangcode($langcode)
->save();
}
}