@@ -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; |
@@ -2,13 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Routing; |
| 4 | 4 | |
| 5 | -use Drupal\Core\DependencyInjection\DependencySerializationTrait; |
|
| 6 | -use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
|
| 7 | 5 | use Drupal\Core\Url; |
| 8 | 6 | use Drupal\graphql\GraphQL\Cache\CacheableValue; |
| 9 | 7 | use Drupal\graphql\GraphQL\Execution\ResolveContext; |
| 10 | 8 | use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
| 11 | -use Symfony\Component\DependencyInjection\ContainerInterface; |
|
| 12 | 9 | use GraphQL\Type\Definition\ResolveInfo; |
| 13 | 10 | |
| 14 | 11 | /** |
@@ -72,8 +72,8 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @param $schema |
|
| 76 | - * @param $operations |
|
| 75 | + * @param string $schema |
|
| 76 | + * @param \GraphQL\Server\OperationParams $operations |
|
| 77 | 77 | * @param array $globals |
| 78 | 78 | * |
| 79 | 79 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @param $schema |
|
| 89 | + * @param string $schema |
|
| 90 | 90 | * @param $operations |
| 91 | 91 | * @param array $globals |
| 92 | 92 | * |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * @param \GraphQL\Server\OperationParams $params |
| 261 | 261 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 262 | 262 | * |
| 263 | - * @return \GraphQL\Executor\Promise\Promise|mixed |
|
| 263 | + * @return \GraphQL\Executor\Promise\Promise |
|
| 264 | 264 | */ |
| 265 | 265 | protected function executeCacheableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document) { |
| 266 | 266 | $schema = $config->getSchema(); |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | * @param \GraphQL\Server\ServerConfig $config |
| 389 | 389 | * @param \GraphQL\Server\OperationParams $params |
| 390 | 390 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 391 | - * @param $operation |
|
| 391 | + * @param string $operation |
|
| 392 | 392 | * |
| 393 | 393 | * @return mixed |
| 394 | 394 | */ |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | * @param \GraphQL\Server\ServerConfig $config |
| 406 | 406 | * @param \GraphQL\Server\OperationParams $params |
| 407 | 407 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 408 | - * @param $operation |
|
| 408 | + * @param string $operation |
|
| 409 | 409 | * |
| 410 | 410 | * @return mixed |
| 411 | 411 | */ |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | * @param \GraphQL\Server\ServerConfig $config |
| 423 | 423 | * @param \GraphQL\Server\OperationParams $params |
| 424 | 424 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 425 | - * @param $operation |
|
| 425 | + * @param string $operation |
|
| 426 | 426 | * |
| 427 | 427 | * @return array |
| 428 | 428 | */ |
@@ -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 | |