public function LogAssignActionForm::getCancelUrl in farmOS 2.x
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
1 call to LogAssignActionForm::getCancelUrl()
- LogAssignActionForm::submitForm in modules/
core/ owner/ src/ Form/ LogAssignActionForm.php - Form submission handler.
File
- modules/
core/ owner/ src/ Form/ LogAssignActionForm.php, line 113
Class
- LogAssignActionForm
- Provides a log assign confirmation form.
Namespace
Drupal\farm_owner\FormCode
public function getCancelUrl() {
if ($this->entityType
->hasLinkTemplate('collection')) {
return new Url('entity.' . $this->entityType
->id() . '.collection');
}
else {
return new Url('<front>');
}
}