You are here

protected function SourcePluginBase::getCache in Zircon Profile 8

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

Get the cache object.

Return value

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

File

core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php, line 403
Contains \Drupal\migrate\Plugin\migrate\source\SourcePluginBase.

Class

SourcePluginBase
The base class for all source plugins.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

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