function SourcePluginBase::getHighWater

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWater()
  2. 10 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWater()
  3. 11.x core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWater()

The current value of the high water mark.

The high water mark defines a timestamp stating the time the import was last run. If the mark is set, only content with a higher timestamp will be imported.

Return value

int|null A Unix timestamp representing the high water mark, or NULL if no high water mark has been stored.

3 calls to SourcePluginBase::getHighWater()
SourcePluginBase::__construct in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
SqlBase::initializeIterator in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Initializes the iterator with the source data.
SqlBase::mapJoinable in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Checks if we can join against the map table.

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 566

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function getHighWater() {
    return $this->getHighWaterStorage()
        ->get($this->migration
        ->id());
}

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