You are here

public function DeleteStyles::getCancelUrl in Block Style Plugins 8.2

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/DeleteStyles.php, line 122

Class

DeleteStyles
Provides a form to delete a block style.

Namespace

Drupal\block_style_plugins\Form

Code

public function getCancelUrl() {
  $parameters = $this
    ->getParameters();
  return new Url('block_style_plugins.layout_builder.styles', $parameters);
}