public function CustomStylesDeleteForm::submitForm in BeautyTips 8
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
- beautytips_manager/
src/ Form/ CustomStylesDeleteForm.php, line 63
Class
Namespace
Drupal\beautytips_manager\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
beautytips_manager_delete_custom_style($this->style->id);
$form_state
->setRedirect('beautytips_manager.customStyles');
}