function DeprecatedAutoloadAccess::setClassMapAuthoritative

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Runtime/DeprecatedAutoloadAccess.php \Drupal\Core\Runtime\DeprecatedAutoloadAccess::setClassMapAuthoritative()

File

core/lib/Drupal/Core/Runtime/DeprecatedAutoloadAccess.php, line 125

Class

DeprecatedAutoloadAccess
Provides deprecation errors when the classloader is accessed.

Namespace

Drupal\Core\Runtime

Code

public function setClassMapAuthoritative($classMapAuthoritative) {
  @trigger_error('Accessing the \'autoloader\' through Drupal\'s provided global is deprecated in drupal:11.4.0 and will be unsupported in drupal:12.0.0. Load the vendor/autoload.php file or provide the global yourself instead. See https://www.drupal.org/node/3576336', E_USER_DEPRECATED);
  self::getActualClassLoader()->setClassMapAuthoritative($classMapAuthoritative);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.