@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | - * @param $schema |
|
79 | - * @param $operations |
|
78 | + * @param string $schema |
|
79 | + * @param \GraphQL\Server\OperationParams $operations |
|
80 | 80 | * |
81 | 81 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
82 | 82 | * @throws \Drupal\Component\Plugin\Exception\PluginException |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param $schema |
|
92 | + * @param string $schema |
|
93 | 93 | * @param $operations |
94 | 94 | * |
95 | 95 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * Returns a callable for loading persisted queries. |
118 | 118 | * |
119 | - * @return callable |
|
119 | + * @return \Closure |
|
120 | 120 | * The persisted query loader. |
121 | 121 | */ |
122 | 122 | protected function getPersistedQueryLoader() { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * |
149 | 149 | * @endcode |
150 | 150 | * |
151 | - * @return array|callable |
|
151 | + * @return \Closure |
|
152 | 152 | * The validation rules or a callable factory. |
153 | 153 | */ |
154 | 154 | protected function getValidationRules() { |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * @param \GraphQL\Language\AST\DocumentNode $document |
226 | 226 | * @param bool $validate |
227 | 227 | * |
228 | - * @return \GraphQL\Executor\Promise\Promise|mixed |
|
228 | + * @return \GraphQL\Executor\Promise\Promise |
|
229 | 229 | */ |
230 | 230 | protected function executeCacheableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document, $validate = TRUE) { |
231 | 231 | $inDebug = !!$config->getDebug(); |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | * @param \GraphQL\Server\ServerConfig $config |
375 | 375 | * @param \GraphQL\Server\OperationParams $params |
376 | 376 | * @param \GraphQL\Language\AST\DocumentNode $document |
377 | - * @param $operation |
|
377 | + * @param string $operation |
|
378 | 378 | * |
379 | 379 | * @return mixed |
380 | 380 | */ |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * @param \GraphQL\Server\ServerConfig $config |
392 | 392 | * @param \GraphQL\Server\OperationParams $params |
393 | 393 | * @param \GraphQL\Language\AST\DocumentNode $document |
394 | - * @param $operation |
|
394 | + * @param string $operation |
|
395 | 395 | * |
396 | 396 | * @return mixed |
397 | 397 | */ |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | * @param \GraphQL\Server\ServerConfig $config |
409 | 409 | * @param \GraphQL\Server\OperationParams $params |
410 | 410 | * @param \GraphQL\Language\AST\DocumentNode $document |
411 | - * @param $operation |
|
411 | + * @param string $operation |
|
412 | 412 | * |
413 | 413 | * @return array |
414 | 414 | */ |
@@ -19,6 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @param callable|callable[] ...$resolvers |
22 | + * @param callable[] $resolvers |
|
22 | 23 | * |
23 | 24 | * @return \Closure |
24 | 25 | */ |
@@ -100,7 +101,7 @@ discard block |
||
100 | 101 | } |
101 | 102 | |
102 | 103 | /** |
103 | - * @param $id |
|
104 | + * @param string $id |
|
104 | 105 | * @param $config |
105 | 106 | * |
106 | 107 | * @return callable |
@@ -159,7 +160,7 @@ discard block |
||
159 | 160 | } |
160 | 161 | |
161 | 162 | /** |
162 | - * @param $name |
|
163 | + * @param string $name |
|
163 | 164 | * |
164 | 165 | * @return \Closure |
165 | 166 | */ |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql\GraphQL; |
4 | 4 | |
5 | -use Drupal\Core\Entity\EntityInterface; |
|
6 | 5 | use Drupal\Core\Plugin\Context\Context; |
7 | -use Drupal\Core\TypedData\ComplexDataInterface; |
|
8 | 6 | use Drupal\graphql\GraphQL\Execution\ResolveContext; |
9 | 7 | use GraphQL\Error\InvariantViolation; |
10 | 8 | use GraphQL\Executor\Executor; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @param $id |
|
114 | + * @param string $id |
|
115 | 115 | * @param \Drupal\Core\Cache\RefinableCacheableDependencyInterface $metadata |
116 | 116 | * |
117 | 117 | * @return mixed|null |
@@ -98,7 +98,7 @@ |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * @param $prefix |
|
101 | + * @param string $prefix |
|
102 | 102 | * |
103 | 103 | * @return array|null |
104 | 104 | */ |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Drupal\Core\Entity\EntityTypeManager; |
8 | 8 | use Drupal\Core\Entity\TranslatableInterface; |
9 | 9 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
10 | -use Drupal\graphql\GraphQL\Buffers\EntityBuffer; |
|
11 | 10 | use Drupal\graphql\GraphQL\Buffers\EntityUuidBuffer; |
12 | 11 | use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase; |
13 | 12 | use GraphQL\Deferred; |
@@ -22,7 +22,6 @@ |
||
22 | 22 | class ImageResourceUrl extends DataProducerPluginBase { |
23 | 23 | |
24 | 24 | /** |
25 | - * @param \Drupal\Core\Entity\EntityInterface $entity |
|
26 | 25 | * |
27 | 26 | * @return mixed |
28 | 27 | */ |