You are here

public function MassContactMessageConfirmForm::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

File

src/Form/MassContactMessageConfirmForm.php, line 122

Class

MassContactMessageConfirmForm
Form object for the Mass Contact Confirm form.

Namespace

Drupal\mass_contact\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('entity.mass_contact_message.add_form');
}