function RobotDeleteForm::getCancelUrl

Same name in other branches
  1. 4.0.x modules/config_entity_example/src/Form/RobotDeleteForm.php \Drupal\config_entity_example\Form\RobotDeleteForm::getCancelUrl()

Gets the cancel URL.

Provides the URL to go to if the user cancels the action. For entity delete forms, this is typically the route that points at the list controller.

Return value

\Drupal\Core\Url The URL to go to if the user cancels the deletion.

Overrides ConfirmFormInterface::getCancelUrl

1 call to RobotDeleteForm::getCancelUrl()
RobotDeleteForm::submitForm in modules/config_entity_example/src/Form/RobotDeleteForm.php
The submit handler for the confirm form.

File

modules/config_entity_example/src/Form/RobotDeleteForm.php, line 61

Class

RobotDeleteForm
Class RobotDeleteForm.

Namespace

Drupal\config_entity_example\Form

Code

public function getCancelUrl() {
    return new Url('entity.robot.list');
}