public function AssetGroupActionForm::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 AssetGroupActionForm::getCancelUrl()
- AssetGroupActionForm::submitForm in modules/
asset/ group/ src/ Form/ AssetGroupActionForm.php - Form submission handler.
File
- modules/
asset/ group/ src/ Form/ AssetGroupActionForm.php, line 103
Class
- AssetGroupActionForm
- Provides an asset group confirmation form.
Namespace
Drupal\farm_group\FormCode
public function getCancelUrl() {
if ($this->entityType
->hasLinkTemplate('collection')) {
return new Url('entity.' . $this->entityType
->id() . '.collection');
}
else {
return new Url('<front>');
}
}