public function SourceContext::__construct in GraphQL 8.4
SourceContext constructor.
Parameters
string $name:
\Drupal\graphql\GraphQL\Resolver\ResolverInterface|null $source:
File
- src/
GraphQL/ Resolver/ SourceContext.php, line 34
Class
- SourceContext
- Resolves by setting the value as context with the given name.
Namespace
Drupal\graphql\GraphQL\ResolverCode
public function __construct($name, ResolverInterface $source = NULL) {
$this->name = $name;
$this->source = $source;
}