Issue #1828616 follow-up by tstoeckler, Berdir: Allow AnnotatedClassDiscovery to find plugins in Drupal\Component as well.
parent
a5e363a58d
commit
df8519574a
|
@ -414,7 +414,7 @@ class DrupalKernel extends Kernel implements DrupalKernelInterface {
|
|||
$path = DRUPAL_ROOT . '/core/lib/Drupal/' . $parent_directory;
|
||||
foreach (new \DirectoryIterator($path) as $component) {
|
||||
if (!$component->isDot() && is_dir($component->getPathname() . '/Plugin')) {
|
||||
$namespaces['Drupal\Core\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib';
|
||||
$namespaces['Drupal\\' . $parent_directory .'\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue