function MongodbRouterRouteProvider::__construct in MongoDB 8
Parameters
\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route builder.
\Drupal\Core\State\State $state: The state.
string $table: The table in the database to use for matching.
Overrides RouteProvider::__construct
File
- src/
MongodbRouterRouteProvider.php, line 44 - Contains Drupal\mongodb\MongodbRouterRouteProvider.
Class
- MongodbRouterRouteProvider
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\mongodbCode
function __construct(MongoCollectionFactory $mongo, RouteBuilderInterface $route_builder, StateInterface $state, CurrentPathStack $current_path) {
$this->mongo = $mongo;
$this->routeBuilder = $route_builder;
$this->state = $state;
$this->currentPath = $current_path;
}