@@ -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 | * |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Drupal\Component\Plugin\PluginBase; |
| 6 | 6 | use Drupal\Component\Render\MarkupInterface; |
| 7 | 7 | use Drupal\Core\Cache\CacheableDependencyInterface; |
| 8 | -use Drupal\Core\StringTranslation\TranslatableMarkup; |
|
| 9 | 8 | use Drupal\graphql\GraphQL\Execution\ResolveContext; |
| 10 | 9 | use Drupal\graphql\GraphQL\ValueWrapperInterface; |
| 11 | 10 | use Drupal\graphql\Plugin\FieldPluginInterface; |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | * @param \GraphQL\Server\ServerConfig $config |
| 283 | 283 | * @param \GraphQL\Server\OperationParams $params |
| 284 | 284 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 285 | - * @param $operation |
|
| 285 | + * @param string $operation |
|
| 286 | 286 | * |
| 287 | 287 | * @return mixed |
| 288 | 288 | */ |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | * @param \GraphQL\Server\ServerConfig $config |
| 300 | 300 | * @param \GraphQL\Server\OperationParams $params |
| 301 | 301 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 302 | - * @param $operation |
|
| 302 | + * @param string $operation |
|
| 303 | 303 | * |
| 304 | 304 | * @return mixed |
| 305 | 305 | */ |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | * @param \GraphQL\Server\ServerConfig $config |
| 317 | 317 | * @param \GraphQL\Server\OperationParams $params |
| 318 | 318 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 319 | - * @param $operation |
|
| 319 | + * @param string $operation |
|
| 320 | 320 | * |
| 321 | 321 | * @return array |
| 322 | 322 | */ |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | * @param \GraphQL\Server\ServerConfig $config |
| 338 | 338 | * @param \GraphQL\Server\OperationParams $params |
| 339 | 339 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 340 | - * @param $operation |
|
| 340 | + * @param string $operation |
|
| 341 | 341 | * |
| 342 | 342 | * @return int|null |
| 343 | 343 | */ |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | /** |
| 369 | 369 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 370 | 370 | * |
| 371 | - * @return array |
|
| 371 | + * @return string |
|
| 372 | 372 | */ |
| 373 | 373 | protected function serializeDocument(DocumentNode $document) { |
| 374 | 374 | return $this->sanitizeRecursive(AST::toArray($document)); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * CacheMetadataCalculator constructor. |
| 18 | 18 | * |
| 19 | - * @param \Drupal\Core\Cache\RefinableCacheableDependencyInterface $metadata |
|
| 19 | + * @param \Drupal\graphql\GraphQL\Execution\ResolveContext $metadata |
|
| 20 | 20 | */ |
| 21 | 21 | public function __construct(RefinableCacheableDependencyInterface $metadata) { |
| 22 | 22 | $this->metadata = $metadata; |