LayoutFieldTranslateUpdateConfig.php in Drupal 8
File
core/modules/layout_builder/tests/src/Functional/Update/Translatability/LayoutFieldTranslateUpdateConfig.php
View source
<?php
namespace Drupal\Tests\layout_builder\Functional\Update\Translatability;
class LayoutFieldTranslateUpdateConfig extends MakeLayoutUntranslatableUpdatePathTestBase {
protected $layoutBuilderTestCases = [
'article' => [
'has_translation' => TRUE,
'has_layout' => TRUE,
'nid' => 1,
'vid' => 2,
],
'page' => [
'has_translation' => FALSE,
'has_layout' => FALSE,
'nid' => 4,
'vid' => 5,
],
];
protected $expectedBundleUpdates = [
'article' => FALSE,
'page' => TRUE,
];
protected $expectedFieldStorageUpdate = FALSE;
}