You are here

public static function EntityGenerate::create in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate/process/EntityGenerate.php \Drupal\migrate_plus\Plugin\migrate\process\EntityGenerate::create()

Creates an instance of the plugin.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.

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.

Return value

static Returns an instance of this plugin.

Overrides EntityLookup::create

File

src/Plugin/migrate/process/EntityGenerate.php, line 96

Class

EntityGenerate
This plugin generates entities within the process plugin.

Namespace

Drupal\migrate_plus\Plugin\migrate\process

Code

public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition, MigrationInterface $migration = NULL) {
  return new static($configuration, $pluginId, $pluginDefinition, $migration, $container
    ->get('entity.manager'), $container
    ->get('plugin.manager.entity_reference_selection'), $container
    ->get('plugin.manager.migrate.process'));
}