You are here

public function TabDeleteForm::getCancelUrl in Block Tabs 8

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/TabDeleteForm.php, line 45

Class

TabDeleteForm
Form for deleting a tab.

Namespace

Drupal\blocktabs\Form

Code

public function getCancelUrl() {
  return $this->blockTabs
    ->toUrl('edit-form');
}