You are here

public function MakeDefaultForm::getCancelUrl in Consumers 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/Entity/Form/MakeDefaultForm.php, line 29

Class

MakeDefaultForm

Namespace

Drupal\consumers\Entity\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('entity.consumer.collection');
}