public function VariantPluginDeleteBlockForm::getCancelUrl in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Form/VariantPluginDeleteBlockForm.php \Drupal\page_manager_ui\Form\VariantPluginDeleteBlockForm::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
- page_manager_ui/
src/ Form/ VariantPluginDeleteBlockForm.php, line 66 - Contains \Drupal\page_manager_ui\Form\VariantPluginDeleteBlockForm.
Class
- VariantPluginDeleteBlockForm
- Provides a form for deleting an access condition.
Namespace
Drupal\page_manager_ui\FormCode
public function getCancelUrl() {
return \Drupal::request()->attributes
->get('destination');
}