You are here

public function SiteSettingEntityTypeDeleteForm::getCancelUrl in Site Settings and Labels 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 SiteSettingEntityTypeDeleteForm::getCancelUrl()
SiteSettingEntityTypeDeleteForm::submitForm in src/Form/SiteSettingEntityTypeDeleteForm.php

File

src/Form/SiteSettingEntityTypeDeleteForm.php, line 50

Class

SiteSettingEntityTypeDeleteForm
Builds the form to delete Site Setting type entities.

Namespace

Drupal\site_settings\Form

Code

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