use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay;
+use Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage;
use Drupal\layout_builder\Section;
use Drupal\layout_builder\SectionComponent;
use Drupal\Tests\BrowserTestBase;
*/
public static $modules = ['field_ui', 'layout_builder', 'node', 'block_test'];
- /**
- * The name of the layout section field.
- *
- * @var string
- */
- protected $fieldName = 'layout_builder__layout';
-
/**
* {@inheritdoc}
*/
]);
$entity->addTranslation('es', [
'title' => 'Translated node title',
- $this->fieldName => [
+ OverridesSectionStorage::FIELD_NAME => [
[
'section' => new Section('layout_twocol', [], [
'foo' => new SectionComponent('foo', 'first', [
'value' => 'The node body',
],
],
- $this->fieldName => $section_values,
+ OverridesSectionStorage::FIELD_NAME => $section_values,
]);
}