You are here

public function DemoConfigResetConfirm::getCancelUrl in Demonstration site (Sandbox / Snapshot) 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/DemoConfigResetConfirm.php, line 77

Class

DemoConfigResetConfirm
This class return the form demo_config_reset_confirm to make sure that you are about to reset your configuration.

Namespace

Drupal\demo\Form

Code

public function getCancelUrl() {
  return new Url('demo.manage_form');
}