function SourcePluginBase::getHighWaterStorage

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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 548

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.