You are here

public function ProfileDeleteForm::getCancelUrl in Profile 2 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/ProfileDeleteForm.php, line 66
Contains \Drupal\profile\Form\ProfileDeleteForm.

Class

ProfileDeleteForm
Provides a confirmation form for deleting a profile entity.

Namespace

Drupal\profile\Form

Code

public function getCancelUrl() {
  return new Url('entity.user.canonical', array(
    'user' => $this->entity
      ->getOwnerId(),
  ));
}