public function BlockStyleForm::submitForm in Block Style Plugins 8.2
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ BlockStyleForm.php, line 228
Class
- BlockStyleForm
- Provides a form for applying styles to a block.
Namespace
Drupal\block_style_plugins\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$parameters = $this
->getParameters($form_state
->getValue('block_styles'));
$url = new Url('block_style_plugins.layout_builder.add_styles', $parameters);
$form_state
->setRedirectUrl($url);
}