You are here

public function DemoResetConfirm::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/DemoResetConfirm.php, line 59

Class

DemoResetConfirm
Returns demo_reset_confirm from to make sure that you really want to reset the configuration.

Namespace

Drupal\demo\Form

Code

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