You are here

public function EntityExists::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/process/EntityExists.php \Drupal\migrate\Plugin\migrate\process\EntityExists::__construct()
  2. 9 core/modules/migrate/src/Plugin/migrate/process/EntityExists.php \Drupal\migrate\Plugin\migrate\process\EntityExists::__construct()

EntityExists constructor.

Parameters

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

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin implementation definition.

$storage: The entity storage.

Overrides PluginBase::__construct

File

core/modules/migrate/src/Plugin/migrate/process/EntityExists.php, line 50

Class

EntityExists
This plugin checks if a given entity exists.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->storage = $storage;
}