You are here

public function LocalTaskUnassignForm::getCancelUrl in Translation Management Tool 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

translators/tmgmt_local/src/Form/LocalTaskUnassignForm.php, line 26

Class

LocalTaskUnassignForm
Unassign task confirmation form.

Namespace

Drupal\tmgmt_local\Form

Code

public function getCancelUrl() {
  $view = Views::getView('tmgmt_local_task_overview');
  $view
    ->initDisplay();
  return $view
    ->getUrl();
}