class ExecutionResult in GraphQL 8.4
Expand the upstream ExecutionResult to make it Drupal cachable.
Hierarchy
- class \Drupal\graphql\GraphQL\Execution\ExecutionResult extends \GraphQL\Executor\ExecutionResult implements CacheableDependencyInterface uses RefinableCacheableDependencyTrait
Expanded class hierarchy of ExecutionResult
3 files declare their use of ExecutionResult
- Executor.php in src/
GraphQL/ Execution/ Executor.php - QueryResultAssertionTrait.php in tests/
src/ Traits/ QueryResultAssertionTrait.php - Server.php in src/
Entity/ Server.php
File
- src/
GraphQL/ Execution/ ExecutionResult.php, line 12
Namespace
Drupal\graphql\GraphQL\ExecutionView source
class ExecutionResult extends LibraryExecutionResult implements CacheableDependencyInterface {
use RefinableCacheableDependencyTrait;
/**
* PHP Serialization: skip some class members when serializing during tests.
*/
public function __sleep() : array {
// PHPUnit error: Fatal error: Uncaught Exception: Serialization of
// 'Closure' is not allowed.
// Remove some closure-containing members before serializing.
$vars = get_object_vars($this);
unset($vars['extensions']);
return array_keys($vars);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableDependencyTrait:: |
protected | property | Cache contexts. | |
CacheableDependencyTrait:: |
protected | property | Cache max-age. | |
CacheableDependencyTrait:: |
protected | property | Cache tags. | |
CacheableDependencyTrait:: |
public | function | 3 | |
CacheableDependencyTrait:: |
public | function | 3 | |
CacheableDependencyTrait:: |
public | function | 3 | |
CacheableDependencyTrait:: |
protected | function | Sets cacheability; useful for value object constructors. | |
ExecutionResult:: |
public | function | PHP Serialization: skip some class members when serializing during tests. | |
RefinableCacheableDependencyTrait:: |
public | function | 1 | |
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function |