@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * @param \Youshido\GraphQL\Execution\ResolveInfo $info |
| 99 | 99 | * The resolve info object. |
| 100 | 100 | * |
| 101 | - * @return mixed |
|
| 101 | + * @return EntityCrudOutputWrapper|null |
|
| 102 | 102 | * The output for the created entity. |
| 103 | 103 | */ |
| 104 | 104 | protected function resolveOutput(EntityInterface $entity, array $args, ResolveInfo $info) { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * |
| 30 | 30 | * @param mixed $value |
| 31 | 31 | * The actual value to be wrapped. |
| 32 | - * @param array $dependencies |
|
| 32 | + * @param CacheableMetadata[] $dependencies |
|
| 33 | 33 | * An array of cache dependencies. |
| 34 | 34 | */ |
| 35 | 35 | public function __construct($value, array $dependencies = []) { |
@@ -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 Youshido\GraphQL\Execution\ResolveInfo; |
| 12 | 9 | |
| 13 | 10 | /** |
@@ -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; |
@@ -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_core\Plugin\GraphQL\Fields\EntityQuery\EntityQuery; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Drupal\Core\Cache\CacheableMetadata; |
| 8 | 8 | use Drupal\Core\Cache\CacheableResponseInterface; |
| 9 | 9 | use Drupal\Core\Cache\RefinableCacheableDependencyInterface; |
| 10 | -use Drupal\Core\Config\Config; |
|
| 11 | 10 | use Drupal\Core\DependencyInjection\ContainerInjectionInterface; |
| 12 | 11 | use Drupal\Core\Render\RenderContext; |
| 13 | 12 | use Drupal\Core\Render\RendererInterface; |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * MaxComplexityQueryVisitor constructor. |
| 17 | 17 | * |
| 18 | - * @param int $maxComplexity |
|
| 19 | - * The allowed maximum complexity. |
|
| 20 | 18 | */ |
| 21 | 19 | public function __construct($defaultCost = 1) { |
| 22 | 20 | $this->defaultCost = $defaultCost; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\graphql\GraphQL\Execution\Visitor; |
| 4 | 4 | |
| 5 | -use Youshido\GraphQL\Exception\ResolveException; |
|
| 6 | 5 | use Youshido\GraphQL\Field\FieldInterface; |
| 7 | 6 | |
| 8 | 7 | class MaxComplexityVisitor implements VisitorInterface { |