protected function EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php \Drupal\Tests\field\Functional\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages()
- 9 core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php \Drupal\Tests\field\Functional\EntityReference\EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages()
Adds additional languages.
1 call to EntityReferenceFieldTranslatedReferenceViewTest::setUpLanguages()
- EntityReferenceFieldTranslatedReferenceViewTest::setUp in core/
modules/ field/ tests/ src/ Functional/ EntityReference/ EntityReferenceFieldTranslatedReferenceViewTest.php
File
- core/
modules/ field/ tests/ src/ Functional/ EntityReference/ EntityReferenceFieldTranslatedReferenceViewTest.php, line 217
Class
- EntityReferenceFieldTranslatedReferenceViewTest
- Tests the translation of entity reference field display on nodes.
Namespace
Drupal\Tests\field\Functional\EntityReferenceCode
protected function setUpLanguages() {
ConfigurableLanguage::createFromLangcode($this->translateToLangcode)
->save();
}