function MigrateSourcePluginManager::getDiscovery

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/MigrateSourcePluginManager.php \Drupal\migrate\Plugin\MigrateSourcePluginManager::getDiscovery()
  2. 8.9.x core/modules/migrate/src/Plugin/MigrateSourcePluginManager.php \Drupal\migrate\Plugin\MigrateSourcePluginManager::getDiscovery()
  3. 11.x core/modules/migrate/src/Plugin/MigrateSourcePluginManager.php \Drupal\migrate\Plugin\MigrateSourcePluginManager::getDiscovery()

Overrides DefaultPluginManager::getDiscovery

File

core/modules/migrate/src/Plugin/MigrateSourcePluginManager.php, line 44

Class

MigrateSourcePluginManager
Plugin manager for migrate source plugins.

Namespace

Drupal\migrate\Plugin

Code

protected function getDiscovery() {
    if (!$this->discovery) {
        $discovery = new AnnotatedClassDiscoveryAutomatedProviders($this->subdir, $this->namespaces, $this->pluginDefinitionAnnotationName, $this->additionalAnnotationNamespaces);
        $this->discovery = new ContainerDerivativeDiscoveryDecorator($discovery);
    }
    return $this->discovery;
}

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