Changes for core/modules/migrate/src/Plugin/Migration.php: 30 added lines, 2 removed lines.
Original line number
Diff line number
Diff line
@@ -369,6 +369,10 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
@trigger_error("The key 'trackLastImported' is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3282894",E_USER_DEPRECATED);
@trigger_error("Invalid migration dependencies for {$this->id()} is deprecated in drupal:10.1.0 and will cause an error in drupal:11.0.0. See https://www.drupal.org/node/3266691",E_USER_DEPRECATED);
}
}
/**
@@ -632,6 +636,12 @@ public function set($property_name, $value) {
@trigger_error("Invalid migration dependencies for {$this->id()} is deprecated in drupal:10.1.0 and will cause an error in drupal:11.0.0. See https://www.drupal.org/node/3266691",E_USER_DEPRECATED);
}
}
$this->{$property_name}=$value;
return$this;
}
@@ -694,16 +704,34 @@ public function setTrackLastImported($track_last_imported) {
}
/**
* {@inheritdoc}
* Get the dependencies for this migration.
*
* @param bool $expand
* Will issue a deprecation in Drupal 10 if set to FALSE. See
@trigger_error('Calling Migration::getMigrationDependencies() without expanding the plugin IDs is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. In most cases, use getMigrationDependencies(TRUE). See https://www.drupal.org/node/3266691',E_USER_DEPRECATED);
}
// @todo Before Drupal 11.0.0, remove ::set() and these checks.