You are here

public function Context::__construct in GraphQL 8.4

Context constructor.

Parameters

string $name:

mixed $default:

File

src/GraphQL/Resolver/Context.php, line 35

Class

Context
Resolves a context value with default value support.

Namespace

Drupal\graphql\GraphQL\Resolver

Code

public function __construct($name, $default = NULL) {
  $this->name = $name;
  $this->default = $default;
}