You are here

protected function LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
  2. 3.4.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
  3. 3.5.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
  4. 3.6.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
  5. 3.8.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()

Enable layout builder for the default view mode for the given node types.

Parameters

array $nodeTypes: Node types.

1 call to LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
LingotekNodeLayoutBuilderAsymmetricTranslationTest::setUp in tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php

File

tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php, line 383

Class

LingotekNodeLayoutBuilderAsymmetricTranslationTest
Tests translating a node with multiple locales including paragraphs.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function configureLayoutBuilder(array $nodeTypes) : void {

  // From the manage display page, go to manage the layout.
  foreach ($nodeTypes as $nodeType) {
    $this
      ->drupalGet("admin/structure/types/manage/{$nodeType}/display/default");
    $this
      ->drupalPostForm(NULL, [
      'layout[enabled]' => TRUE,
    ], 'Save');
    $this
      ->drupalPostForm(NULL, [
      'layout[allow_custom]' => TRUE,
    ], 'Save');
  }
}