Skip to content

Commit 89327a3

Browse files
authored
Accept EntityTypeManagerInterface in TaxonomyLoadTree (#951)
1 parent 261c80b commit 89327a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Plugin/GraphQL/DataProducer/Taxonomy/TaxonomyLoadTree.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Drupal\graphql\Plugin\GraphQL\DataProducer\Taxonomy;
55

6-
use Drupal\Core\Entity\EntityTypeManager;
6+
use Drupal\Core\Entity\EntityTypeManagerInterface;
77
use Drupal\Core\Entity\TranslatableInterface;
88
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
99
use 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

Comments
 (0)