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

Breadcrumb

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

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];
    }
}

API Navigation

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