You are here

public function EntityExtraFieldFormDelete::getCancelUrl in Entity Extra Field 2.0.x

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

Class

EntityExtraFieldFormDelete
Define entity extra form delete.

Namespace

Drupal\entity_extra_field\Form

Code

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