@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | * The schema plugin instance. |
234 | 234 | * @param array $config |
235 | 235 | * |
236 | - * @return mixed|callable |
|
236 | + * @return \Closure |
|
237 | 237 | * The context object for query execution or a callable factory. |
238 | 238 | */ |
239 | 239 | protected function getContext(SchemaPluginInterface $schema, array $config) { |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | * |
289 | 289 | * @see \GraphQL\Error\FormattedError::prepareFormatter |
290 | 290 | * |
291 | - * @return mixed|callable |
|
291 | + * @return \Closure |
|
292 | 292 | * The error formatter. |
293 | 293 | */ |
294 | 294 | protected function getErrorFormatter() { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * |
308 | 308 | * @see \GraphQL\Executor\ExecutionResult::toArray |
309 | 309 | * |
310 | - * @return mixed|callable |
|
310 | + * @return \Closure |
|
311 | 311 | * The error handler. |
312 | 312 | */ |
313 | 313 | protected function getErrorHandler() { |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | * |
322 | 322 | * Returns a callable for loading persisted queries. |
323 | 323 | * |
324 | - * @return callable |
|
324 | + * @return \Closure |
|
325 | 325 | * The persisted query loader. |
326 | 326 | */ |
327 | 327 | protected function getPersistedQueryLoader() { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * |
356 | 356 | * @endcode |
357 | 357 | * |
358 | - * @return array|callable |
|
358 | + * @return \Closure |
|
359 | 359 | * The validation rules or a callable factory. |
360 | 360 | */ |
361 | 361 | protected function getValidationRules() { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @param $root |
157 | 157 | * @param $variables |
158 | 158 | * @param $operation |
159 | - * @param $resolver |
|
159 | + * @param callable $resolver |
|
160 | 160 | * |
161 | 161 | * @return \Drupal\graphql\GraphQL\Execution\Executor |
162 | 162 | */ |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | /** |
295 | 295 | * @param string $prefix |
296 | 296 | * |
297 | - * @return \GraphQL\Executor\ExecutionResult|null |
|
297 | + * @return ExecutionResult|null |
|
298 | 298 | */ |
299 | 299 | protected function cacheRead($prefix) { |
300 | 300 | if (($cache = $this->cacheBackend->get("contexts:$prefix"))) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * Context constructor. |
28 | 28 | * |
29 | 29 | * @param $name |
30 | - * @param null $default |
|
30 | + * @param callable|null $default |
|
31 | 31 | */ |
32 | 32 | public function __construct($name, $default = NULL) { |
33 | 33 | $this->name = $name; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | use DataFetcherTrait; |
24 | 24 | |
25 | 25 | /** |
26 | - * @param $id |
|
26 | + * @param string $id |
|
27 | 27 | * @param $config |
28 | 28 | * |
29 | 29 | * @return \Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerProxy |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param \Drupal\graphql\GraphQL\Resolver\ResolverInterface[] $resolvers |
|
36 | + * @param DataProducerProxy $resolvers |
|
37 | 37 | * |
38 | 38 | * @return \Drupal\graphql\GraphQL\Resolver\Composite |
39 | 39 | */ |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * @param $name |
|
112 | + * @param string $name |
|
113 | 113 | * |
114 | 114 | * @return \Drupal\graphql\GraphQL\Resolver\Argument |
115 | 115 | */ |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Entity; |
4 | 4 | |
5 | 5 | use Drupal\Core\Entity\EntityInterface; |
6 | -use Drupal\graphql\GraphQL\Execution\ResolveContext; |
|
7 | 6 | use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase; |
8 | -use GraphQL\Type\Definition\ResolveInfo; |
|
9 | 7 | |
10 | 8 | /** |
11 | 9 | * @DataProducer( |
@@ -2,12 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Entity; |
4 | 4 | |
5 | -use Drupal\Core\Cache\RefinableCacheableDependencyInterface; |
|
6 | 5 | use Drupal\Core\Entity\EntityRepositoryInterface; |
7 | 6 | use Drupal\Core\Entity\EntityTypeManager; |
8 | 7 | use Drupal\Core\Entity\TranslatableInterface; |
9 | 8 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
10 | -use Drupal\graphql\GraphQL\Buffers\EntityBuffer; |
|
11 | 9 | use Drupal\graphql\GraphQL\Buffers\EntityUuidBuffer; |
12 | 10 | use Drupal\graphql\GraphQL\Execution\FieldContext; |
13 | 11 | use Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerPluginBase; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Field; |
4 | 4 | |
5 | -use Drupal\Core\Cache\RefinableCacheableDependencyInterface; |
|
6 | 5 | use Drupal\Core\Entity\EntityInterface; |
7 | 6 | use Drupal\Core\Entity\EntityRepositoryInterface; |
8 | 7 | use Drupal\Core\Entity\EntityTypeManager; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Routing; |
4 | 4 | |
5 | -use Drupal\Core\Cache\RefinableCacheableDependencyInterface; |
|
6 | 5 | use Drupal\Core\DependencyInjection\DependencySerializationTrait; |
7 | 6 | use Drupal\Core\Entity\EntityTypeManagerInterface; |
8 | 7 | use Drupal\Core\Entity\TranslatableInterface; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | /** |
25 | 25 | * @param $string |
26 | 26 | * |
27 | - * @return mixed |
|
27 | + * @return string |
|
28 | 28 | */ |
29 | 29 | public function resolve($string) { |
30 | 30 | return strtoupper($string); |