protected function LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.4.x tests/src/Functional/LingotekNodeLayoutBuilderSymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder()
- 3.5.x tests/src/Functional/LingotekNodeLayoutBuilderSymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder()
- 3.6.x tests/src/Functional/LingotekNodeLayoutBuilderSymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder()
- 3.7.x tests/src/Functional/LingotekNodeLayoutBuilderSymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder()
- 3.8.x tests/src/Functional/LingotekNodeLayoutBuilderSymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder()
Enable layout builder for the default view mode for the given node types.
Parameters
array $nodeTypes: Node types.
1 call to LingotekNodeLayoutBuilderSymmetricTranslationTest::configureLayoutBuilder()
File
- tests/
src/ Functional/ LingotekNodeLayoutBuilderSymmetricTranslationTest.php, line 379
Class
- LingotekNodeLayoutBuilderSymmetricTranslationTest
- Tests translating a node with multiple locales including paragraphs.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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');
}
}