public function DefaultPattern::getBlockDeleteUrl in Panels 8.3
Same name and namespace in other branches
- 8.4 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
Overrides PanelsPatternInterface::getBlockDeleteUrl
File
- src/
Plugin/ PanelsPattern/ DefaultPattern.php, line 121
Class
- DefaultPattern
- Plugin annotation @PanelsPattern("default");
Namespace
Drupal\panels\Plugin\PanelsPatternCode
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,
]);
}