You are here

public function RouteBuilder::__construct 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::__construct()

RouteBuilder constructor.

Overrides JsonRpcMethodBase::__construct

File

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

Class

RouteBuilder
RPC method to rebuild the routes.

Namespace

Drupal\jsonrpc_core\Plugin\jsonrpc\Method

Code

public function __construct(array $configuration, string $plugin_id, $plugin_definition, RouteBuilderInterface $route_builder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routeBuilder = $route_builder;
}