You are here

protected function SourcePluginBase::getHighWaterStorage in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWaterStorage()
  2. 10 core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php \Drupal\migrate\Plugin\migrate\source\SourcePluginBase::getHighWaterStorage()

Get the high water storage object.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface The storage object.

File

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

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function getHighWaterStorage() {
  if (!isset($this->highWaterStorage)) {
    $this->highWaterStorage = \Drupal::keyValue('migrate:high_water');
  }
  return $this->highWaterStorage;
}