33namespace Drupal \graphql_views \Plugin \views \row ;
44
55use Drupal \Core \Entity \EntityInterface ;
6- use Drupal \Core \Entity \EntityTypeManagerInterface ;
6+ use Drupal \Core \Entity \EntityManagerInterface ;
77use Drupal \Core \Entity \Plugin \DataType \EntityAdapter ;
88use Drupal \Core \Language \LanguageManagerInterface ;
99use Drupal \views \Entity \Render \EntityTranslationRenderTrait ;
@@ -44,7 +44,7 @@ class GraphQLEntityRow extends RowPluginBase {
4444 *
4545 * @var \Drupal\Core\Entity\EntityManagerInterface
4646 */
47- protected $ entityTypeManager ;
47+ protected $ entityManager ;
4848
4949 /**
5050 * The language manager.
@@ -56,15 +56,15 @@ class GraphQLEntityRow extends RowPluginBase {
5656 /**
5757 * {@inheritdoc}
5858 *
59- * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
59+ * @param \Drupal\Core\Entity\EntityManagerInterface $entityManager
6060 * The entity type manager.
6161 * @param \Drupal\Core\Language\LanguageManagerInterface $languageManager
6262 * The language manager.
6363 */
64- public function __construct (array $ configuration , $ pluginId , $ pluginDefinition , EntityTypeManagerInterface $ entityTypeManager , LanguageManagerInterface $ languageManager ) {
64+ public function __construct (array $ configuration , $ pluginId , $ pluginDefinition , EntityManagerInterface $ entityManager , LanguageManagerInterface $ languageManager ) {
6565 parent ::__construct ($ configuration , $ pluginId , $ pluginDefinition );
6666
67- $ this ->entityTypeManager = $ entityTypeManager ;
67+ $ this ->entityManager = $ entityManager ;
6868 $ this ->languageManager = $ languageManager ;
6969 }
7070
@@ -76,7 +76,7 @@ public static function create(ContainerInterface $container, array $configuratio
7676 $ configuration ,
7777 $ pluginId ,
7878 $ pluginDefinition ,
79- $ container ->get ('entity_type .manager ' ),
79+ $ container ->get ('entity .manager ' ),
8080 $ container ->get ('language_manager ' )
8181 );
8282 }
@@ -118,7 +118,7 @@ public function getEntityTypeId() {
118118 * {@inheritdoc}
119119 */
120120 protected function getEntityManager () {
121- return $ this ->entityTypeManager ;
121+ return $ this ->entityManager ;
122122 }
123123
124124 /**
0 commit comments