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

Breadcrumb

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

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

DrupalAutoloader

Namespace

mglaman\PHPStanDrupal\Drupal

Code

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);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal