public function IdpDeleteForm::submitForm in SAML Service Provider 8.2
Same name and namespace in other branches
- 8.3 src/Form/IdpDeleteForm.php \Drupal\saml_sp\Form\IdpDeleteForm::submitForm()
- 4.x src/Form/IdpDeleteForm.php \Drupal\saml_sp\Form\IdpDeleteForm::submitForm()
- 3.x src/Form/IdpDeleteForm.php \Drupal\saml_sp\Form\IdpDeleteForm::submitForm()
Overrides EntityDeleteFormTrait::submitForm
File
- src/
Form/ IdpDeleteForm.php, line 78 - Delete a single idp
Class
Namespace
Drupal\saml_sp\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->entity
->delete();
drupal_set_message($this
->t('Identity Provider %label has been deleted.', array(
'%label' => $this->entity
->label(),
)));
$form_state
->setRedirectUrl($this
->getCancelUrl());
}