public function RouteBuilder::execute in JSON-RPC 2.x
Same name and namespace in other branches
- 8 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\MethodCode
public function execute(ParameterBag $params) {
return $this->routeBuilder
->rebuild();
}