You are here

public function EntityFieldStorageConfig::__construct in Drupal 8

Construct a new plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.

\Drupal\Core\Entity\EntityStorageInterface $storage: The storage for this entity type.

array $bundles: The list of bundles this entity type has.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_plugin_manager: The field type plugin manager.

Overrides EntityConfigBase::__construct

File

core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php, line 57

Class

EntityFieldStorageConfig
Deprecated. Destination with Drupal specific config dependencies.

Namespace

Drupal\migrate_drupal\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, FieldTypePluginManagerInterface $field_type_plugin_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $language_manager, $config_factory, $field_type_plugin_manager);
  $this->languageManager = $language_manager;
  $this->configFactory = $config_factory;
  $this->fieldTypePluginManager = $field_type_plugin_manager;
}