You are here

protected function SourcePluginBase::getHighWaterStorage in Drupal 8

Same name and namespace in other branches
  1. 9 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.

1 call to SourcePluginBase::getHighWaterStorage()
TestSqlBase::getHighWaterStorage in core/modules/migrate/tests/src/Kernel/SqlBaseTest.php
Get the high water storage object.
1 method overrides SourcePluginBase::getHighWaterStorage()
TestSqlBase::getHighWaterStorage in core/modules/migrate/tests/src/Kernel/SqlBaseTest.php
Get the high water storage object.

File

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

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