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

Breadcrumb

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

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\Extension

Code

public function __call($name, $args) : mixed {
    $this->loadFile($name);
    return ('\\' . $name)(...$args);
}

API Navigation

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