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