private function LayoutBuilderWidget::getSectionStorage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php \Drupal\layout_builder\Plugin\Field\FieldWidget\LayoutBuilderWidget::getSectionStorage()
- 9 core/modules/layout_builder/src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php \Drupal\layout_builder\Plugin\Field\FieldWidget\LayoutBuilderWidget::getSectionStorage()
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.
2 calls to LayoutBuilderWidget::getSectionStorage()
- LayoutBuilderWidget::extractFormValues in core/
modules/ layout_builder/ src/ Plugin/ Field/ FieldWidget/ LayoutBuilderWidget.php - Extracts field values from submitted form values.
- LayoutBuilderWidget::formElement in core/
modules/ layout_builder/ src/ Plugin/ Field/ FieldWidget/ LayoutBuilderWidget.php - Returns the form for a single field widget.
File
- core/
modules/ layout_builder/ src/ Plugin/ Field/ FieldWidget/ LayoutBuilderWidget.php, line 75
Class
- LayoutBuilderWidget
- A widget to display the layout form.
Namespace
Drupal\layout_builder\Plugin\Field\FieldWidgetCode
private function getSectionStorage(FormStateInterface $form_state) {
return $form_state
->getFormObject()
->getSectionStorage();
}