public function EntityTestDeleteForm::getCancelUrl in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/entity_test/src/EntityTestDeleteForm.php \Drupal\entity_test\EntityTestDeleteForm::getCancelUrl()
- 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_testCode
public function getCancelUrl() {
return new Url('<front>');
}