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

Breadcrumb

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

function DrupalAutoloader::loadExtension

1 call to DrupalAutoloader::loadExtension()
DrupalAutoloader::register in vendor/mglaman/phpstan-drupal/src/Drupal/DrupalAutoloader.php

File

vendor/mglaman/phpstan-drupal/src/Drupal/DrupalAutoloader.php, line 349

Class

DrupalAutoloader

Namespace

mglaman\PHPStanDrupal\Drupal

Code

protected function loadExtension(Extension $extension) : void {
    try {
        $extension->load();
    } catch (Throwable $e) {
        // Something prevented the extension file from loading.
        // This can happen when drupal_get_path or drupal_get_filename are used outside of the scope of a function.
    }
}

API Navigation

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