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

Breadcrumb

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

function 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;
}
RSS feed
Powered by Drupal