You are here

public function RulesUiConfigHandler::getBaseRouteUrl in Rules 8.3

Returns the URL of the base route, based on the current URL.

Parameters

array $options: (optional) Options for generating the URL, as supported by \Drupal\Core\Url::fromRoute().

Return value

\Drupal\Core\Url The URL of the base route.

Overrides RulesUiHandlerInterface::getBaseRouteUrl

File

src/Ui/RulesUiConfigHandler.php, line 139

Class

RulesUiConfigHandler
The default handler for RulesUi plugins that store to config.

Namespace

Drupal\rules\Ui

Code

public function getBaseRouteUrl(array $options = []) {

  // @see \Drupal\Core\Url::fromRouteMatch()
  return Url::fromRoute($this->pluginDefinition->base_route, $this->currentRouteMatch
    ->getRawParameters()
    ->all(), $options);
}