8.5.x SourcePluginBase.php SourcePluginBase::getHighWater()
8.2.x SourcePluginBase.php SourcePluginBase::getHighWater()
8.3.x SourcePluginBase.php SourcePluginBase::getHighWater()
8.4.x SourcePluginBase.php SourcePluginBase::getHighWater()
8.6.x SourcePluginBase.php 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.

2 calls to SourcePluginBase::getHighWater()
SourcePluginBase::__construct in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
Constructs a Drupal\Component\Plugin\PluginBase object.
SqlBase::initializeIterator in core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
Initializes the iterator with the source data.

File

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

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());
}