public function OverridesEntityForm::redirectOnSubmit in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/OverridesEntityForm.php \Drupal\layout_builder\Form\OverridesEntityForm::redirectOnSubmit()
- 9 core/modules/layout_builder/src/Form/OverridesEntityForm.php \Drupal\layout_builder\Form\OverridesEntityForm::redirectOnSubmit()
Form submission handler.
File
- core/
modules/ layout_builder/ src/ Form/ OverridesEntityForm.php, line 217
Class
- OverridesEntityForm
- Provides a form containing the Layout Builder UI for overrides.
Namespace
Drupal\layout_builder\FormCode
public function redirectOnSubmit(array $form, FormStateInterface $form_state) {
$form_state
->setRedirectUrl($this->sectionStorage
->getLayoutBuilderUrl($form_state
->getTriggeringElement()['#redirect']));
}