public function OperationEvent::__construct in GraphQL 8.4
OperationEvent constructor.
Parameters
\Drupal\graphql\GraphQL\Execution\ResolveContext $context:
\GraphQL\Executor\ExecutionResult $result:
File
- src/
Event/ OperationEvent.php, line 48
Class
- OperationEvent
- Represents an event that is triggered before and after a GraphQL operation.
Namespace
Drupal\graphql\EventCode
public function __construct(ResolveContext $context, ExecutionResult $result = NULL) {
$this->context = $context;
$this->result = $result;
}