You are here

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

Update the Form Display.

1 call to LayoutBuilderAtBase::updateFormDisplay()
LayoutBuilderAtReplicateTest::testAsymmetricTranslationWithReplicate in tests/src/Functional/LayoutBuilderAtReplicateTest.php
Tests that layout overrides have copied blocks.

File

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

Class

LayoutBuilderAtBase
Base class for Layout Builder Asymmetric Translations.

Namespace

Drupal\Tests\layout_builder_at\Functional

Code

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