@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity; |
4 | 4 | |
5 | -use Drupal\Core\Access\AccessibleInterface; |
|
6 | 5 | use Drupal\Core\Entity\EntityInterface; |
7 | 6 | use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
8 | 7 | use Youshido\GraphQL\Execution\ResolveInfo; |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity; |
4 | 4 | |
5 | 5 | use Drupal\Core\Entity\FieldableEntityInterface; |
6 | -use Drupal\Core\Field\Plugin\DataType\FieldItem; |
|
7 | -use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
|
8 | 6 | use Drupal\graphql\Utility\StringHelper; |
9 | 7 | use Drupal\graphql_core\Plugin\GraphQL\Fields\EntityFieldBase; |
10 | 8 | use Youshido\GraphQL\Execution\ResolveInfo; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Drupal\Core\Field\FieldItemBase; |
6 | 6 | use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
7 | -use Youshido\GraphQL\Execution\ResolveInfo; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * Base class for entity field plugins. |
@@ -60,9 +60,9 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param $entityTypeId |
|
63 | + * @param string $entityTypeId |
|
64 | 64 | * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $fieldDefinition |
65 | - * @return array |
|
65 | + * @return string |
|
66 | 66 | */ |
67 | 67 | protected function getParentsForField($entityTypeId, FieldStorageDefinitionInterface $fieldDefinition) { |
68 | 68 | if ($fieldDefinition->isBaseField()) { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | * The GraphQL module. |
6 | 6 | */ |
7 | 7 | |
8 | -use Drupal\graphql\Utility\StringHelper; |
|
9 | 8 | use Drupal\Core\Url; |
10 | 9 | |
11 | 10 | define('GRAPHQL_SCALAR_PLUGIN', 'scalar'); |
@@ -12,8 +12,6 @@ |
||
12 | 12 | use Drupal\Core\PageCache\ResponsePolicyInterface; |
13 | 13 | use Drupal\Core\Routing\StackedRouteMatchInterface; |
14 | 14 | use Drupal\graphql\GraphQL\Schema\SchemaLoader; |
15 | -use Drupal\graphql\Plugin\GraphQL\SchemaPluginInterface; |
|
16 | -use Drupal\graphql\Plugin\GraphQL\SchemaPluginManager; |
|
17 | 15 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
18 | 16 | use Symfony\Component\HttpFoundation\RequestStack; |
19 | 17 | use Symfony\Component\HttpFoundation\Response; |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Entity; |
4 | 4 | |
5 | -use Drupal\Core\Field\FieldItemBase; |
|
6 | -use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase; |
|
7 | 5 | use Drupal\graphql_core\Plugin\GraphQL\Fields\EntityFieldBase; |
8 | 6 | use Youshido\GraphQL\Execution\ResolveInfo; |
9 | 7 |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Drupal\graphql\Plugin\GraphQL\Traits\NamedPluginTrait; |
11 | 11 | use Drupal\graphql\Plugin\GraphQL\Traits\TypedPluginTrait; |
12 | 12 | use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginInterface; |
13 | -use Youshido\GraphQL\Config\Object\InputObjectTypeConfig; |
|
14 | 13 | use Youshido\GraphQL\Field\Field; |
15 | 14 | use Youshido\GraphQL\Type\TypeInterface; |
16 | 15 |