Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Migration.php

function Migration::getPluginDefinition

Overrides PluginInspectionInterface::getPluginDefinition

File

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

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