You are here

public function IndexBreakLockForm::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/IndexBreakLockForm.php, line 108

Class

IndexBreakLockForm
Builds the form to break the lock of an edited search index.

Namespace

Drupal\search_api\Form

Code

public function getCancelUrl() {
  return $this->entity
    ->toUrl('fields');
}