diff --git a/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php b/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php index ff3c4f4..aba60b1 100644 --- a/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php +++ b/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php @@ -10,7 +10,7 @@ use Drupal\migrate\Annotation\MultipleProviderAnnotationInterface; /** - * Adds the namespaces in the plugin class use statements as providers. + * Determines providers based on a class's and its parent's namespaces. * * @internal * This is a temporary solution to the fact that migration source plugins have @@ -65,7 +65,7 @@ protected function prepareAnnotationDefinition(AnnotationInterface $annotation, $annotation->setClass($class); $providers = $annotation->getProviders(); // Loop through all the parent classes and add their providers (which we - // infer by parsing their use statements) to the $providers array. + // infer by parsing their namespaces) to the $providers array. do { $providers[] = $this->getProviderFromNamespace($parser->getNamespaceName()); } while ($parser = StaticReflectionParser::getParentParser($parser, $this->finder));