function DrupalAutoloader::addThemeNamespaces
1 call to DrupalAutoloader::addThemeNamespaces()
- DrupalAutoloader::register in vendor/
mglaman/ phpstan-drupal/ src/ Drupal/ DrupalAutoloader.php
File
-
vendor/
mglaman/ phpstan-drupal/ src/ Drupal/ DrupalAutoloader.php, line 307
Class
Namespace
mglaman\PHPStanDrupal\DrupalCode
protected function addThemeNamespaces() : void {
foreach ($this->themeData as $theme_name => $theme) {
$theme_dir = $this->drupalRoot . '/' . $theme->getPath();
$this->namespaces["Drupal\\{$theme_name}"] = $theme_dir . '/src';
$this->registerExtensionTestNamespace($theme);
}
}