You are here

private function LayoutBuilderWidget::getSectionStorage in Layout Builder Symmetric Translations 8

Gets the section storage.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

\Drupal\layout_builder\SectionStorageInterface The section storage loaded from the tempstore.

Overrides LayoutBuilderWidget::getSectionStorage

1 call to LayoutBuilderWidget::getSectionStorage()
LayoutBuilderWidget::extractFormValues in src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php
Extracts field values from submitted form values.

File

src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php, line 48

Class

LayoutBuilderWidget
Extended LayoutBuilderWidget to extract the value translation field.

Namespace

Drupal\layout_builder_st\Plugin\Field\FieldWidget

Code

private function getSectionStorage(FormStateInterface $form_state) {
  return $form_state
    ->getFormObject()
    ->getSectionStorage();
}