Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SourcePluginBase.php

function SourcePluginBase::getCache

Gets the cache object.

Return value

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

File

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

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal