You are here

public function PanelsDeleteBlockForm::getCancelUrl in Panels 8.3

Same name and namespace in other branches
  1. 8.4 src/Form/PanelsDeleteBlockForm.php \Drupal\panels\Form\PanelsDeleteBlockForm::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/PanelsDeleteBlockForm.php, line 93

Class

PanelsDeleteBlockForm
Provides a form for deleting an access condition.

Namespace

Drupal\panels\Form

Code

public function getCancelUrl() {
  return $this
    ->getRequest()->attributes
    ->get('destination');
}