function SourcePluginBase::getHighWaterStorage

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

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

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