Issue #3198608 by quietone, swirt, indytechcook, benjifisher, mrinalini9,...
Issue #3198608 by quietone, swirt, indytechcook, benjifisher, mrinalini9, mikelutz, longwave, heddn: trackLastImported YAML key to enable tracking the last import date of a row is undocumented and confusing
@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);
}
}
/**
@@ -670,6 +680,7 @@ public function mergeProcessOfProperty($property, array $process_of_property) {
* {@inheritdoc}
*/
publicfunctionisTrackLastImported(){
@trigger_error(__METHOD__.'() 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);
return$this->trackLastImported;
}
@@ -677,6 +688,7 @@ public function isTrackLastImported() {
@trigger_error(__METHOD__.'() 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);
@@ -757,6 +769,7 @@ public function getSourceConfiguration() {
* {@inheritdoc}
*/
publicfunctiongetTrackLastImported(){
@trigger_error(__METHOD__.'() 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);
@@ -174,8 +174,13 @@ public function testGetDestinationIds() {
*
* @covers ::getTrackLastImported
* @covers ::isTrackLastImported
*
* @group legacy
*/
publicfunctiontestGetTrackLastImported(){
$this->expectDeprecation('Drupal\migrate\Plugin\Migration::setTrackLastImported() 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');
$this->expectDeprecation('Drupal\migrate\Plugin\Migration::getTrackLastImported() 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');
$this->expectDeprecation('Drupal\migrate\Plugin\Migration::isTrackLastImported() 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');
@@ -195,6 +198,21 @@ public function getValidMigrationDependenciesProvider() {
];
}
/**
* Test trackLastImported deprecation message in Migration constructor.
*
* @group legacy
*/
publicfunctiontestTrackLastImportedDeprecation(){
$this->expectDeprecation("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");