You are here

public function AddToHeadDeleteProfileForm::getCancelUrl in Add To Head 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/AddToHeadDeleteProfileForm.php, line 33

Class

AddToHeadDeleteProfileForm

Namespace

Drupal\add_to_head\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('add_to_head.admin');
}