You are here

public function CategoryDeleteForm::getCancelUrl in Mass Contact 8

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to CategoryDeleteForm::getCancelUrl()
CategoryDeleteForm::submitForm in src/Form/CategoryDeleteForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…

File

src/Form/CategoryDeleteForm.php, line 24

Class

CategoryDeleteForm
Builds the form to delete Mass contact category entities.

Namespace

Drupal\mass_contact\Form

Code

public function getCancelUrl() {
  return new Url('entity.mass_contact_category.collection');
}