You are here

public function LayoutOptionDeleteForm::getCancelUrl in Bootstrap Layout Builder 2.x

Same name and namespace in other branches
  1. 1.x src/Form/LayoutOptionDeleteForm.php \Drupal\bootstrap_layout_builder\Form\LayoutOptionDeleteForm::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to LayoutOptionDeleteForm::getCancelUrl()
LayoutOptionDeleteForm::submitForm in src/Form/LayoutOptionDeleteForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…

File

src/Form/LayoutOptionDeleteForm.php, line 26

Class

LayoutOptionDeleteForm
Builds the layout option deletion form.

Namespace

Drupal\bootstrap_layout_builder\Form

Code

public function getCancelUrl() {
  return new Url('entity.blb_layout.options_form', [
    'blb_layout' => $this->entity
      ->getLayoutId(),
  ]);
}