protected function LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
- 3.4.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
- 3.5.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
- 3.7.x tests/src/Functional/LingotekNodeLayoutBuilderAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderAsymmetricTranslationTest::configureLayoutBuilder()
- 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()
File
- tests/
src/ Functional/ LingotekNodeLayoutBuilderAsymmetricTranslationTest.php, line 383
Class
- LingotekNodeLayoutBuilderAsymmetricTranslationTest
- 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');
}
}