protected property LayoutFieldTranslateUpdateConfig::$layoutBuilderTestCases in Drupal 8
Layout builder test cases.
Keys are bundle names. Values are test cases including keys:
- has_translation
- has_layout
- vid
- nid
Type: array
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\TranslatabilityCode
protected $layoutBuilderTestCases = [
'article' => [
'has_translation' => TRUE,
'has_layout' => TRUE,
'nid' => 1,
'vid' => 2,
],
'page' => [
'has_translation' => FALSE,
'has_layout' => FALSE,
'nid' => 4,
'vid' => 5,
],
];