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

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