You are here

protected function LayoutBuilderAtBase::setUpViewDisplay in Layout Builder Asymmetric Translation 8.2

Set up the View Display.

3 calls to LayoutBuilderAtBase::setUpViewDisplay()
LayoutBuilderAtInstallTest::setUp in tests/src/Functional/LayoutBuilderAtInstallTest.php
LayoutBuilderAtReplicateTest::setUp in tests/src/Functional/LayoutBuilderAtReplicateTest.php
LayoutBuilderAtTranslationTest::setUp in tests/src/Functional/LayoutBuilderAtTranslationTest.php

File

tests/src/Functional/LayoutBuilderAtBase.php, line 76

Class

LayoutBuilderAtBase
Base class for Layout Builder Asymmetric Translations.

Namespace

Drupal\Tests\layout_builder_at\Functional

Code

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