You are here

protected function LayoutBuilderTranslationTest::setUpViewDisplay in Layout Builder Symmetric Translations 8

Set up the View Display.

1 call to LayoutBuilderTranslationTest::setUpViewDisplay()
LayoutBuilderTranslationTest::setUp in tests/src/Functional/LayoutBuilderTranslationTest.php

File

tests/src/Functional/LayoutBuilderTranslationTest.php, line 303

Class

LayoutBuilderTranslationTest
Tests that the Layout Builder UI works with translated content.

Namespace

Drupal\Tests\layout_builder_st\Functional

Code

protected function setUpViewDisplay() {
  EntityViewDisplay::create([
    'targetEntityType' => $this->entityTypeId,
    'bundle' => $this->bundle,
    'mode' => 'default',
    'status' => TRUE,
  ])
    ->setComponent($this->fieldName, [
    'type' => 'string',
  ])
    ->save();
}