public function FieldCollectionItemDeleteForm::getCancelUrl in Field collection 8
Same name and namespace in other branches
- 8.3 src/Form/FieldCollectionItemDeleteForm.php \Drupal\field_collection\Form\FieldCollectionItemDeleteForm::getCancelUrl()
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/ FieldCollectionItemDeleteForm.php, line 23
Class
- FieldCollectionItemDeleteForm
- Provides a form for deleting a field collection item.
Namespace
Drupal\field_collection\FormCode
public function getCancelUrl() {
return $this->entity
->getHost()
->toUrl();
}