public function Context::__construct in GraphQL 8.3
Context constructor.
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
mixed $pluginDefinition: The plugin definition.
\Drupal\graphql\GraphQL\Buffers\SubRequestBuffer $subRequestBuffer: The sub-request buffer service.
\Drupal\Core\Plugin\Context\ContextRepositoryInterface $contextRepository: The context repository service.
Overrides PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Context/ Context.php, line 67
Class
- Context
- Request arbitrary drupal context objects with GraphQL.
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\ContextCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, SubRequestBuffer $subRequestBuffer, ContextRepositoryInterface $contextRepository) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->contextRepository = $contextRepository;
$this->subRequestBuffer = $subRequestBuffer;
}