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