public function RouteMatchValueResolver::resolve in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Controller/ArgumentResolver/RouteMatchValueResolver.php \Drupal\Core\Controller\ArgumentResolver\RouteMatchValueResolver::resolve()
File
- core/
lib/ Drupal/ Core/ Controller/ ArgumentResolver/ RouteMatchValueResolver.php, line 26
Class
- RouteMatchValueResolver
- Yields a RouteMatch object based on the request object passed along.
Namespace
Drupal\Core\Controller\ArgumentResolverCode
public function resolve(Request $request, ArgumentMetadata $argument) {
(yield RouteMatch::createFromRequest($request));
}