protected function LayoutBuilderTranslationTest::setUpViewDisplay in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php \Drupal\Tests\layout_builder\Functional\LayoutBuilderTranslationTest::setUpViewDisplay()
Set up the View Display.
1 call to LayoutBuilderTranslationTest::setUpViewDisplay()
- LayoutBuilderTranslationTest::setUp in core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderTranslationTest.php
File
- core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderTranslationTest.php, line 175
Class
- LayoutBuilderTranslationTest
- Tests that the Layout Builder works with translated content.
Namespace
Drupal\Tests\layout_builder\FunctionalCode
protected function setUpViewDisplay() {
EntityViewDisplay::create([
'targetEntityType' => $this->entityTypeId,
'bundle' => $this->bundle,
'mode' => 'default',
'status' => TRUE,
])
->setComponent($this->fieldName, [
'type' => 'string',
])
->save();
}