8.5.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)
8.0.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)
8.1.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)
8.2.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)
8.3.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)
8.4.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)
8.6.x SourcePluginBase.php SourcePluginBase::aboveHighwater(Row $row)

Check if the incoming data is newer than what we've previously imported.

Parameters

\Drupal\migrate\Row $row: The row we're importing.

Return value

bool TRUE if the highwater value in the row is greater than our current value.

File

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

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function aboveHighwater(Row $row) {
  return $this
    ->getHighWaterProperty() && $row
    ->getSourceProperty($this->highWaterProperty['name']) > $this->originalHighWater;
}