You are here

public function FlagDisableConfirmForm::getCancelUrl in Flag 8.4

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/FlagDisableConfirmForm.php, line 51

Class

FlagDisableConfirmForm
Provides the flag enable/disable confirmation form.

Namespace

Drupal\flag\Form

Code

public function getCancelUrl() {
  return $this->flag
    ->toUrl('collection');
}