@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * |
| 30 | 30 | * @param mixed $value |
| 31 | 31 | * The actual value to be wrapped. |
| 32 | - * @param array $dependencies |
|
| 32 | + * @param CacheableMetadata[] $dependencies |
|
| 33 | 33 | * An array of cache dependencies. |
| 34 | 34 | */ |
| 35 | 35 | public function __construct($value, array $dependencies = []) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Routing\InternalUrl; |
| 4 | 4 | |
| 5 | 5 | use Drupal\Core\DependencyInjection\DependencySerializationTrait; |
| 6 | -use Drupal\Core\Language\LanguageManagerInterface; |
|
| 7 | 6 | use Drupal\Core\Path\AliasManagerInterface; |
| 8 | 7 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
| 9 | 8 | use Drupal\Core\Url; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\EntityQuery; |
| 4 | 4 | |
| 5 | 5 | use Drupal\Core\DependencyInjection\DependencySerializationTrait; |
| 6 | -use Drupal\Core\Entity\ContentEntityInterface; |
|
| 7 | 6 | use Drupal\Core\Entity\EntityInterface; |
| 8 | 7 | use Drupal\Core\Entity\EntityRepositoryInterface; |
| 9 | 8 | use Drupal\Core\Entity\EntityTypeManagerInterface; |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | * @param \GraphQL\Type\Definition\ResolveInfo $info |
| 108 | 108 | * The resolve info object. |
| 109 | 109 | * |
| 110 | - * @return mixed |
|
| 110 | + * @return EntityCrudOutputWrapper|null |
|
| 111 | 111 | * The output for the created entity. |
| 112 | 112 | */ |
| 113 | 113 | protected function resolveOutput(EntityInterface $entity, array $args, ResolveInfo $info) { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity; |
| 4 | 4 | |
| 5 | -use Drupal\Core\DependencyInjection\DependencySerializationTrait; |
|
| 6 | 5 | use Drupal\Core\Entity\ContentEntityInterface; |
| 7 | 6 | use Drupal\Core\Entity\Query\QueryInterface; |
| 8 | 7 | use Drupal\graphql\GraphQL\Execution\ResolveContext; |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Apply the specified bundle filtering mode to the query. |
| 67 | 67 | * |
| 68 | - * @param \Drupal\Core\Entity\Query\QueryInterface $query |
|
| 68 | + * @param QueryInterface|null $query |
|
| 69 | 69 | * The entity query object. |
| 70 | 70 | * @param \Drupal\Core\Entity\ContentEntityInterface $value |
| 71 | 71 | * The parent entity object. |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Drupal\Core\Cache\Cache; |
|
| 4 | 3 | use Drupal\Core\Url; |
| 5 | 4 | use Drupal\graphql\Utility\StringHelper; |
| 6 | 5 | |
@@ -4,8 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Drupal\Component\Render\MarkupInterface; |
| 6 | 6 | use Drupal\Core\Entity\ContentEntityInterface; |
| 7 | -use Drupal\Core\Entity\Entity; |
|
| 8 | -use Drupal\Core\Entity\EntityInterface; |
|
| 9 | 7 | use Drupal\Core\Field\FieldItemInterface; |
| 10 | 8 | use Drupal\graphql\GraphQL\Execution\ResolveContext; |
| 11 | 9 | use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
@@ -11,11 +11,9 @@ |
||
| 11 | 11 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
| 12 | 12 | use Drupal\Core\TypedData\TranslatableInterface; |
| 13 | 13 | use Drupal\Core\Url; |
| 14 | -use Drupal\graphql\GraphQL\Buffers\SubRequestBuffer; |
|
| 15 | 14 | use Drupal\graphql\GraphQL\Cache\CacheableValue; |
| 16 | 15 | use Drupal\graphql\GraphQL\Execution\ResolveContext; |
| 17 | 16 | use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
| 18 | -use Symfony\Component\CssSelector\Parser\Tokenizer\TokenizerEscaping; |
|
| 19 | 17 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 20 | 18 | use GraphQL\Type\Definition\ResolveInfo; |
| 21 | 19 | |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | * @param \GraphQL\Server\OperationParams $params |
| 290 | 290 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 291 | 291 | * |
| 292 | - * @return \GraphQL\Executor\Promise\Promise|mixed |
|
| 292 | + * @return \GraphQL\Executor\Promise\Promise |
|
| 293 | 293 | */ |
| 294 | 294 | protected function executeCacheableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document) { |
| 295 | 295 | $contextCacheId = 'ccid:' . $this->cacheIdentifier($params, $document, new CacheableMetadata()); |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | * @param \GraphQL\Server\ServerConfig $config |
| 420 | 420 | * @param \GraphQL\Server\OperationParams $params |
| 421 | 421 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 422 | - * @param $operation |
|
| 422 | + * @param string $operation |
|
| 423 | 423 | * |
| 424 | 424 | * @return mixed |
| 425 | 425 | */ |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | * @param \GraphQL\Server\ServerConfig $config |
| 437 | 437 | * @param \GraphQL\Server\OperationParams $params |
| 438 | 438 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 439 | - * @param $operation |
|
| 439 | + * @param string $operation |
|
| 440 | 440 | * |
| 441 | 441 | * @return mixed |
| 442 | 442 | */ |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | * @param \GraphQL\Server\ServerConfig $config |
| 454 | 454 | * @param \GraphQL\Server\OperationParams $params |
| 455 | 455 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 456 | - * @param $operation |
|
| 456 | + * @param string $operation |
|
| 457 | 457 | * |
| 458 | 458 | * @return array |
| 459 | 459 | */ |
@@ -2,13 +2,10 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\graphql\GraphQL\Execution; |
| 4 | 4 | |
| 5 | -use Drupal\Core\Cache\CacheableDependencyInterface; |
|
| 6 | 5 | use Drupal\Core\Cache\CacheableMetadata; |
| 7 | 6 | use Drupal\Core\Cache\CacheBackendInterface; |
| 8 | 7 | use Drupal\Core\Cache\Context\CacheContextsManager; |
| 9 | -use Drupal\Core\Session\AccountProxyInterface; |
|
| 10 | 8 | use Drupal\graphql\Plugin\SchemaPluginManager; |
| 11 | -use Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface; |
|
| 12 | 9 | use Drupal\graphql\GraphQL\Cache\CacheableRequestError; |
| 13 | 10 | use GraphQL\Error\Error; |
| 14 | 11 | use GraphQL\Error\FormattedError; |
@@ -26,7 +23,6 @@ discard block |
||
| 26 | 23 | use GraphQL\Utils\AST; |
| 27 | 24 | use GraphQL\Utils\TypeInfo; |
| 28 | 25 | use GraphQL\Utils\Utils; |
| 29 | -use GraphQL\Validator\DocumentValidator; |
|
| 30 | 26 | use GraphQL\Validator\Rules\AbstractValidationRule; |
| 31 | 27 | use GraphQL\Validator\ValidationContext; |
| 32 | 28 | |