function LayoutBuilderWidget::getSectionStorage
Same name in other branches
- 8.9.x 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()
- 11.x 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.