You are here

public function DefaultPattern::getBlockListUrl in Panels 8.4

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

Gets the block list url.

Parameters

string $tempstore_id: The tempstore identifier.

string $machine_name: The tempstore key.

string $region: The region in which to place the block after it is created.

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

Return value

\Drupal\Core\Url

Overrides PanelsPatternInterface::getBlockListUrl

File

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

Class

DefaultPattern
Plugin annotation @PanelsPattern("default");

Namespace

Drupal\panels\Plugin\PanelsPattern

Code

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