You are here

protected function SourcePluginBase::getCache in Drupal 10

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

Gets the cache object.

Return value

\Drupal\Core\Cache\CacheBackendInterface The cache object.

1 call to SourcePluginBase::getCache()
SourcePluginBase::count in core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php

File

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

Class

SourcePluginBase
The base class for source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

protected function getCache() {
  if (!isset($this->cache)) {
    $this->cache = \Drupal::cache('migrate');
  }
  return $this->cache;
}