function RestConfigSubscriber::__construct
Constructs the RestConfigSubscriber.
Parameters
\Drupal\Core\Routing\RouteBuilderInterface $router_builder: The router builder service.
File
-
core/
modules/ rest/ src/ EventSubscriber/ RestConfigSubscriber.php, line 28
Class
- RestConfigSubscriber
- A subscriber triggering a route rebuild when certain configuration changes.
Namespace
Drupal\rest\EventSubscriberCode
public function __construct(RouteBuilderInterface $router_builder) {
$this->routerBuilder = $router_builder;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.