public function FlagConfirmFormBase::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/ FlagConfirmFormBase.php, line 45
Class
- FlagConfirmFormBase
- Provides methods common to the flag and unflag confirm forms.
Namespace
Drupal\flag\FormCode
public function getCancelUrl() {
return $this->entity
->toUrl();
}