public function IndexDisableConfirmForm::getCancelUrl in Search API 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/ IndexDisableConfirmForm.php, line 59
Class
- IndexDisableConfirmForm
- Defines a confirm form for disabling an index.
Namespace
Drupal\search_api\FormCode
public function getCancelUrl() {
return new Url('entity.search_api_index.canonical', [
'search_api_index' => $this->entity
->id(),
]);
}