You are here

protected function SourcePluginBase::getHighWater in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWater()
  2. 9 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
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.
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 565

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