@@ -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 |
@@ -384,8 +384,6 @@ |
||
384 | 384 | /** |
385 | 385 | * Retrieves the subscription definition for a given field reference. |
386 | 386 | * |
387 | - * @param array $mutation |
|
388 | - * The subscription reference. |
|
389 | 387 | * |
390 | 388 | * @return array |
391 | 389 | * The subscription definition. |
@@ -71,9 +71,8 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @param $schema |
|
75 | - * @param $operations |
|
76 | - * @param array $globals |
|
74 | + * @param string $schema |
|
75 | + * @param \GraphQL\Server\OperationParams $operations |
|
77 | 76 | * |
78 | 77 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
79 | 78 | * @throws \Drupal\Component\Plugin\Exception\PluginException |
@@ -86,9 +85,8 @@ discard block |
||
86 | 85 | } |
87 | 86 | |
88 | 87 | /** |
89 | - * @param $schema |
|
88 | + * @param string $schema |
|
90 | 89 | * @param $operations |
91 | - * @param array $globals |
|
92 | 90 | * |
93 | 91 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
94 | 92 | * @throws \Drupal\Component\Plugin\Exception\PluginException |