function ProceduralCall::loadFile

Loads the file a function lives in, if any.

Parameters

$function: The name of the function.

1 call to ProceduralCall::loadFile()
ProceduralCall::__call in core/lib/Drupal/Core/Extension/ProceduralCall.php
Calls a function in the root namespace.

File

core/lib/Drupal/Core/Extension/ProceduralCall.php, line 41

Class

ProceduralCall
Calls procedural hook implementations for backwards compatibility.

Namespace

Drupal\Core\Extension

Code

public function loadFile($function) : void {
    if (isset($this->includes[$function])) {
        include_once $this->includes[$function];
    }
}

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