protected function LayoutBuilderEntityViewDisplay::addSectionField in Layout Builder Symmetric Translations 8
Adds a layout section field to a given bundle.
Parameters
string $entity_type_id: The entity type ID.
string $bundle: The bundle.
string $field_name: The name for the layout section field.
Overrides LayoutBuilderEntityViewDisplay::addSectionField
File
- src/
Entity/ LayoutBuilderEntityViewDisplay.php, line 19
Class
- LayoutBuilderEntityViewDisplay
- Layout Entity Display overridden to add translation field.
Namespace
Drupal\layout_builder_st\EntityCode
protected function addSectionField($entity_type_id, $bundle, $field_name) {
parent::addSectionField($entity_type_id, $bundle, $field_name);
$this
->addTranslationField($entity_type_id, $bundle, OverridesSectionStorage::TRANSLATED_CONFIGURATION_FIELD_NAME);
}