You are here

public function RouteBuilder::execute in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x modules/jsonrpc_core/src/Plugin/jsonrpc/Method/RouteBuilder.php \Drupal\jsonrpc_core\Plugin\jsonrpc\Method\RouteBuilder::execute()

Executes the action with the parameters passed in.

Parameters

\Drupal\jsonrpc\Object\ParameterBag $params: The parameters.

Return value

mixed The result of the execution.

Overrides ExecutableWithParamsInterface::execute

File

modules/jsonrpc_core/src/Plugin/jsonrpc/Method/RouteBuilder.php, line 51

Class

RouteBuilder
RPC method to rebuild the routes.

Namespace

Drupal\jsonrpc_core\Plugin\jsonrpc\Method

Code

public function execute(ParameterBag $params) {
  return $this->routeBuilder
    ->rebuild();
}