You are here

public function RestExampleClientDelete::getCancelUrl in Examples for Developers 3.x

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

modules/rest_example/src/Form/RestExampleClientDelete.php, line 60

Class

RestExampleClientDelete
Delete a new node on a remote Drupal site.

Namespace

Drupal\rest_example\Form

Code

public function getCancelUrl() {
  return new Url('rest_example.client_actions_index');
}