You are here

public function EntityExtraFieldFormDelete::getCancelUrl in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Form/EntityExtraFieldFormDelete.php \Drupal\entity_extra_field\Form\EntityExtraFieldFormDelete::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/EntityExtraFieldFormDelete.php, line 25

Class

EntityExtraFieldFormDelete
Define entity extra form delete.

Namespace

Drupal\entity_extra_field\Form

Code

public function getCancelUrl() {
  return $this->entity
    ->toUrl('collection');
}