You are here

protected function SourcePluginBase::getHighWaterField 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::getHighWaterField()
  2. 9 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWaterField()

Get the name of the field used as the high watermark.

The name of the field qualified with an alias if available.

Return value

string|null The name of the field for the high water mark, or NULL if not set.

See also

\Drupal\migrate\Plugin\migrate\source\SqlBase::initializeIterator()

1 call to SourcePluginBase::getHighWaterField()
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 603

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function getHighWaterField() {
  if (!empty($this->highWaterProperty['name'])) {
    return !empty($this->highWaterProperty['alias']) ? $this->highWaterProperty['alias'] . '.' . $this->highWaterProperty['name'] : $this->highWaterProperty['name'];
  }
  return NULL;
}