3
3
4
4
namespace Drupal \graphql \Plugin \GraphQL \DataProducer \Taxonomy ;
5
5
6
- use Drupal \Core \Entity \EntityTypeManager ;
6
+ use Drupal \Core \Entity \EntityTypeManagerInterface ;
7
7
use Drupal \Core \Entity \TranslatableInterface ;
8
8
use Drupal \Core \Plugin \ContainerFactoryPluginInterface ;
9
9
use Drupal \Core \Session \AccountInterface ;
@@ -69,7 +69,7 @@ class TaxonomyLoadTree extends DataProducerPluginBase implements ContainerFactor
69
69
/**
70
70
* The entity type manager service.
71
71
*
72
- * @var \Drupal\Core\Entity\EntityTypeManager
72
+ * @var \Drupal\Core\Entity\EntityTypeManagerInterface
73
73
*/
74
74
protected $ entityTypeManager ;
75
75
@@ -104,7 +104,7 @@ public static function create(ContainerInterface $container, array $configuratio
104
104
* The plugin id.
105
105
* @param array $pluginDefinition
106
106
* The plugin definition array.
107
- * @param \Drupal\Core\Entity\EntityTypeManager $entityTypeManager
107
+ * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
108
108
* The entity type manager service.
109
109
* @param \Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer
110
110
* The entity buffer service.
@@ -115,7 +115,7 @@ public function __construct(
115
115
array $ configuration ,
116
116
string $ pluginId ,
117
117
array $ pluginDefinition ,
118
- EntityTypeManager $ entityTypeManager ,
118
+ EntityTypeManagerInterface $ entityTypeManager ,
119
119
EntityBuffer $ entityBuffer
120
120
) {
121
121
parent ::__construct ($ configuration , $ pluginId , $ pluginDefinition );
0 commit comments