You are here

public function RngContactDeleteForm::getCancelUrl in RNG Contact 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/RngContactDeleteForm.php, line 23

Class

RngContactDeleteForm
Form for deleting a contact.

Namespace

Drupal\rng_contact\Form

Code

public function getCancelUrl() {
  return $this->entity
    ->urlInfo();
}