Commit 6c234cde authored by git's avatar git Committed by Berdir

Issue #3079627 by super_romeo: TypeError: Argument 6 passed to __construct()...

Issue #3079627 by super_romeo: TypeError: Argument 6 passed to __construct() must be an instance of EntityTypeManagerInterface, instance of EntityTypeManager given
parent e8f27b7e
...@@ -5,7 +5,7 @@ namespace Drupal\paragraphs\Plugin\migrate\source; ...@@ -5,7 +5,7 @@ namespace Drupal\paragraphs\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase as MigrateDrupalSqlBase; use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase as MigrateDrupalSqlBase;
use Drupal\Component\Plugin\ConfigurablePluginInterface; use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Utility\NestedArray; use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\State\StateInterface; use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
...@@ -20,7 +20,7 @@ abstract class DrupalSqlBase extends MigrateDrupalSqlBase implements Configurabl ...@@ -20,7 +20,7 @@ abstract class DrupalSqlBase extends MigrateDrupalSqlBase implements Configurabl
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager) { public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_manager); parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_manager);
$this->setConfiguration($configuration); $this->setConfiguration($configuration);
} }
......
...@@ -5,7 +5,7 @@ namespace Drupal\paragraphs\Plugin\migrate\source\d7; ...@@ -5,7 +5,7 @@ namespace Drupal\paragraphs\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity as MigrateFieldableEntity; use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity as MigrateFieldableEntity;
use Drupal\Component\Plugin\ConfigurablePluginInterface; use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Utility\NestedArray; use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\State\StateInterface; use Drupal\Core\State\StateInterface;
use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Plugin\MigrationInterface;
...@@ -20,7 +20,7 @@ abstract class FieldableEntity extends MigrateFieldableEntity implements Configu ...@@ -20,7 +20,7 @@ abstract class FieldableEntity extends MigrateFieldableEntity implements Configu
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager) { public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_manager); parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_manager);
$this->setConfiguration($configuration); $this->setConfiguration($configuration);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment