@@ -2,12 +2,9 @@ |
||
| 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\Plugin\GraphQL\Fields\FieldPluginBase; |
| 10 | -use Symfony\Component\DependencyInjection\ContainerInterface; |
|
| 11 | 8 | use GraphQL\Type\Definition\ResolveInfo; |
| 12 | 9 | |
| 13 | 10 | /** |
@@ -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) { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Drupal\Core\Entity\EntityTypeManagerInterface; |
| 6 | 6 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
| 7 | 7 | use Drupal\graphql\Plugin\GraphQL\Enums\EnumPluginBase; |
| 8 | -use Drupal\graphql\Plugin\SchemaBuilder; |
|
| 9 | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Drupal\Core\Language\LanguageManagerInterface; |
| 6 | 6 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
| 7 | 7 | use Drupal\graphql\Plugin\GraphQL\Enums\EnumPluginBase; |
| 8 | -use Drupal\graphql\Plugin\SchemaBuilder; |
|
| 9 | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -82,6 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | + * @param string $parent |
|
| 85 | 86 | * @return bool |
| 86 | 87 | */ |
| 87 | 88 | public function hasFields($parent) { |
@@ -472,7 +473,7 @@ discard block |
||
| 472 | 473 | } |
| 473 | 474 | |
| 474 | 475 | /** |
| 475 | - * @param $id |
|
| 476 | + * @param string $id |
|
| 476 | 477 | * @param $data |
| 477 | 478 | */ |
| 478 | 479 | protected function cacheSet($id, $data) { |
@@ -481,7 +482,7 @@ discard block |
||
| 481 | 482 | } |
| 482 | 483 | |
| 483 | 484 | /** |
| 484 | - * @param $id |
|
| 485 | + * @param string $id |
|
| 485 | 486 | * |
| 486 | 487 | * @return mixed |
| 487 | 488 | */ |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | * @param null $root |
| 264 | 264 | * @param null $context |
| 265 | 265 | * @param null $variables |
| 266 | - * @param null $operation |
|
| 266 | + * @param string $operation |
|
| 267 | 267 | * @param callable|NULL $resolver |
| 268 | 268 | * @param array|NULL $rules |
| 269 | 269 | * |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | * @param \GraphQL\Server\ServerConfig $config |
| 298 | 298 | * @param \GraphQL\Server\OperationParams $params |
| 299 | 299 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 300 | - * @param $operation |
|
| 300 | + * @param string $operation |
|
| 301 | 301 | * |
| 302 | 302 | * @return callable|mixed |
| 303 | 303 | */ |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | * @param \GraphQL\Server\ServerConfig $config |
| 315 | 315 | * @param \GraphQL\Server\OperationParams $params |
| 316 | 316 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 317 | - * @param $operation |
|
| 317 | + * @param string $operation |
|
| 318 | 318 | * |
| 319 | 319 | * @return callable|mixed |
| 320 | 320 | */ |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | * @param \GraphQL\Server\ServerConfig $config |
| 332 | 332 | * @param \GraphQL\Server\OperationParams $params |
| 333 | 333 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 334 | - * @param $operation |
|
| 334 | + * @param string $operation |
|
| 335 | 335 | * |
| 336 | 336 | * @return array|callable |
| 337 | 337 | */ |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use GraphQL\GraphQL; |
| 18 | 18 | use GraphQL\Language\AST\DocumentNode; |
| 19 | 19 | use GraphQL\Language\Parser; |
| 20 | -use GraphQL\Language\Source; |
|
| 21 | 20 | use GraphQL\Server\Helper; |
| 22 | 21 | use GraphQL\Server\OperationParams; |
| 23 | 22 | use GraphQL\Server\RequestError; |