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

Gets the definition of the plugin implementation.

Return value

\Drupal\Component\Plugin\Definition\PluginDefinitionInterface|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 741

Class

Migration

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] = $this->{$key} ?? $value;
  }
  return $definition;
}