public function DefaultPattern::getBlockEditUrl in Panels 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/PanelsPattern/DefaultPattern.php \Drupal\panels\Plugin\PanelsPattern\DefaultPattern::getBlockEditUrl()
Gets the block edit 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::getBlockEditUrl
File
- src/
Plugin/ PanelsPattern/ DefaultPattern.php, line 105
Class
- DefaultPattern
- Plugin annotation @PanelsPattern("default");
Namespace
Drupal\panels\Plugin\PanelsPatternCode
public function getBlockEditUrl($tempstore_id, $machine_name, $block_id, $destination = NULL) {
return Url::fromRoute('panels.edit_block', [
'tempstore_id' => $tempstore_id,
'machine_name' => $machine_name,
'block_id' => $block_id,
'destination' => $destination,
]);
}