public function UCWishlistAdminDeleteForm::submitForm in UC Wish List 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
- src/
Form/ UCWishlistAdminDeleteForm.php, line 97
Class
Namespace
Drupal\uc_wishlist\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
drupal_set_message($this
->t('@title has been deleted.', [
'@title' => str_replace('.', '', $values['wishlist']->title),
]));
$form_state
->setRedirect('uc_wishlist.admin_wishlist');
}