LayoutFieldTranslateUpdateConfig::$layoutBuilderTestCases

Type: layoutBuilderTestCases

Overrides MakeLayoutUntranslatableUpdatePathTestBase::$layoutBuilderTestCases

File

core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfig.php, line 16

Class

LayoutFieldTranslateUpdateConfig
A test case that updates 1 bundle's field but not both.

Namespace

Drupal\Tests\layout_builder\Functional\Update\Translatability

Code

protected $layoutBuilderTestCases = [
    'article' => [
        'has_translation' => TRUE,
        'has_layout' => TRUE,
        'nid' => 1,
        'vid' => 2,
    ],
    'page' => [
        'has_translation' => FALSE,
        'has_layout' => FALSE,
        'nid' => 4,
        'vid' => 5,
    ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.