private function LayoutBuilderWidget::getSectionStorage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php \Drupal\layout_builder\Plugin\Field\FieldWidget\LayoutBuilderWidget::getSectionStorage()
- 10 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.
1 call to LayoutBuilderWidget::getSectionStorage()
- 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();
}