function ProceduralCall::__call
Calls a function in the root namespace.
__call() does not support references https://bugs.php.net/bug.php?id=71256 Because of this, ModuleHandler::getHookListeners() inlines this method so it is not called anywhere in core.
File
-
core/
lib/ Drupal/ Core/ Extension/ ProceduralCall.php, line 30
Class
- ProceduralCall
- Calls procedural hook implementations for backwards compatibility.
Namespace
Drupal\Core\ExtensionCode
public function __call($name, $args) : mixed {
$this->loadFile($name);
return ('\\' . $name)(...$args);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.