function EntityConfigBase::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::__construct()
  2. 10 core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::__construct()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::__construct()

Construct a new entity.

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.

Overrides Entity::__construct

2 calls to EntityConfigBase::__construct()
EntityFieldStorageConfig::__construct in core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php
Construct a new plugin.
EntitySearchPage::__construct in core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php
Constructs a new EntitySearchPage.
2 methods override EntityConfigBase::__construct()
EntityFieldStorageConfig::__construct in core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php
Construct a new plugin.
EntitySearchPage::__construct in core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php
Constructs a new EntitySearchPage.

File

core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php, line 99

Class

EntityConfigBase
Base destination class for importing configuration entities.

Namespace

Drupal\migrate\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) {
    parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles);
    $this->languageManager = $language_manager;
    $this->configFactory = $config_factory;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.