function Psr7RequestValueResolver::supports
Same name in other branches
- 9 core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php \Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver::supports()
- 10 core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php \Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver::supports()
File
-
core/
lib/ Drupal/ Core/ Controller/ ArgumentResolver/ Psr7RequestValueResolver.php, line 36
Class
- Psr7RequestValueResolver
- Yields a PSR7 request object based on the request object passed along.
Namespace
Drupal\Core\Controller\ArgumentResolverCode
public function supports(Request $request, ArgumentMetadata $argument) {
return $argument->getType() == ServerRequestInterface::class;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.