33
44namespace Drupal \graphql \Plugin \GraphQL \DataProducer \Taxonomy ;
55
6- use Drupal \Core \Entity \EntityTypeManager ;
6+ use Drupal \Core \Entity \EntityTypeManagerInterface ;
77use Drupal \Core \Entity \TranslatableInterface ;
88use Drupal \Core \Plugin \ContainerFactoryPluginInterface ;
99use Drupal \Core \Session \AccountInterface ;
@@ -69,7 +69,7 @@ class TaxonomyLoadTree extends DataProducerPluginBase implements ContainerFactor
6969 /**
7070 * The entity type manager service.
7171 *
72- * @var \Drupal\Core\Entity\EntityTypeManager
72+ * @var \Drupal\Core\Entity\EntityTypeManagerInterface
7373 */
7474 protected $ entityTypeManager ;
7575
@@ -104,7 +104,7 @@ public static function create(ContainerInterface $container, array $configuratio
104104 * The plugin id.
105105 * @param array $pluginDefinition
106106 * The plugin definition array.
107- * @param \Drupal\Core\Entity\EntityTypeManager $entityTypeManager
107+ * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
108108 * The entity type manager service.
109109 * @param \Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer
110110 * The entity buffer service.
@@ -115,7 +115,7 @@ public function __construct(
115115 array $ configuration ,
116116 string $ pluginId ,
117117 array $ pluginDefinition ,
118- EntityTypeManager $ entityTypeManager ,
118+ EntityTypeManagerInterface $ entityTypeManager ,
119119 EntityBuffer $ entityBuffer
120120 ) {
121121 parent ::__construct ($ configuration , $ pluginId , $ pluginDefinition );
0 commit comments