You are here

protected function SourcePluginBase::aboveHighwater in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::aboveHighwater()

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.

1 call to SourcePluginBase::aboveHighwater()
SourcePluginBase::next in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php
The migration iterates over rows returned by the source plugin. This method determines the next row which will be processed and imported into the system.

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 329
Contains \Drupal\migrate\Plugin\migrate\source\SourcePluginBase.

Class

SourcePluginBase
The base class for all source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

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