You are here

public function EntityTestDeleteForm::getCancelUrl in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/entity_test/src/EntityTestDeleteForm.php \Drupal\entity_test\EntityTestDeleteForm::getCancelUrl()
  2. 9 core/modules/system/tests/modules/entity_test/src/EntityTestDeleteForm.php \Drupal\entity_test\EntityTestDeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ContentEntityDeleteForm::getCancelUrl

File

core/modules/system/tests/modules/entity_test/src/EntityTestDeleteForm.php, line 18

Class

EntityTestDeleteForm
Provides the entity_test delete form.

Namespace

Drupal\entity_test

Code

public function getCancelUrl() {
  return new Url('<front>');
}