function Migration::setTrackLastImported

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

Set if the migration should track time of last import.

Parameters

bool $track_last_imported: Boolean value to indicate if the migration should track last import time.

Return value

$this

Overrides MigrationInterface::setTrackLastImported

File

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

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function setTrackLastImported($track_last_imported) {
  @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);
  $this->trackLastImported = (bool) $track_last_imported;
  return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.