You are here

public function Migration::getPluginDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getPluginDefinition()
  2. 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getPluginDefinition()

Gets the definition of the plugin implementation.

Return value

array The plugin definition, as returned by the discovery object used by the plugin manager.

Overrides PluginBase::getPluginDefinition

File

core/modules/migrate/src/Plugin/Migration.php, line 654

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function getPluginDefinition() {
  $definition = [];

  // While normal plugins do not change their definitions on the fly, this
  // one does so accommodate for that.
  foreach (parent::getPluginDefinition() as $key => $value) {
    $definition[$key] = isset($this->{$key}) ? $this->{$key} : $value;
  }
  return $definition;
}