You are here

public function DefaultPattern::getBlockDeleteUrl in Panels 8.4

Same name and namespace in other branches
  1. 8.3 src/Plugin/PanelsPattern/DefaultPattern.php \Drupal\panels\Plugin\PanelsPattern\DefaultPattern::getBlockDeleteUrl()

Gets the block delete url.

Parameters

string $tempstore_id: The tempstore identifier.

string $machine_name: The tempstore key.

string $block_id: The unique id of the block in this panel.

string $destination: The destination to which to redirect after submission.

Return value

\Drupal\Core\Url

Overrides PanelsPatternInterface::getBlockDeleteUrl

File

src/Plugin/PanelsPattern/DefaultPattern.php, line 117

Class

DefaultPattern
Plugin annotation @PanelsPattern("default");

Namespace

Drupal\panels\Plugin\PanelsPattern

Code

public function getBlockDeleteUrl($tempstore_id, $machine_name, $block_id, $destination = NULL) {
  return Url::fromRoute('panels.delete_block', [
    'tempstore_id' => $tempstore_id,
    'machine_name' => $machine_name,
    'block_id' => $block_id,
    'destination' => $destination,
  ]);
}