You are here

public function VariantPluginDeleteBlockForm::getCancelUrl in Page Manager 8

Same name and namespace in other branches
  1. 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\Form

Code

public function getCancelUrl() {
  return \Drupal::request()->attributes
    ->get('destination');
}