You are here

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

Set up the Form Display.

2 calls to LayoutBuilderAtBase::setUpFormDisplay()
LayoutBuilderAtReplicateTest::setUp in tests/src/Functional/LayoutBuilderAtReplicateTest.php
LayoutBuilderAtTranslationTest::setUp in tests/src/Functional/LayoutBuilderAtTranslationTest.php

File

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

Class

LayoutBuilderAtBase
Base class for Layout Builder Asymmetric Translations.

Namespace

Drupal\Tests\layout_builder_at\Functional

Code

protected function setUpFormDisplay() {
  EntityFormDisplay::load($this->entityTypeId . '.' . $this->bundle . '.default')
    ->setComponent(OverridesSectionStorage::FIELD_NAME, [
    'type' => 'layout_builder_at_copy',
    'region' => 'content',
  ])
    ->save();
}