You are here

public function Migration::getPluginDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 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 660

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;
}