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

Breadcrumb

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

function FileLoader::loadExtensionConfig

3 calls to FileLoader::loadExtensionConfig()
PhpFileLoader::executeCallback in vendor/symfony/dependency-injection/Loader/PhpFileLoader.php
Resolve the parameters to the $callback and execute it.
XmlFileLoader::loadFromExtensions in vendor/symfony/dependency-injection/Loader/XmlFileLoader.php
Loads from an extension.
YamlFileLoader::loadFromExtensions in vendor/symfony/dependency-injection/Loader/YamlFileLoader.php

File

vendor/symfony/dependency-injection/Loader/FileLoader.php, line 249

Class

FileLoader
FileLoader is the abstract class used by all built-in loaders that are file based.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

protected final function loadExtensionConfig(string $namespace, array $config) : void {
    if (!$this->prepend) {
        $this->container
            ->loadFromExtension($namespace, $config);
        return;
    }
    if ($this->importing) {
        if (!isset($this->extensionConfigs[$namespace])) {
            $this->extensionConfigs[$namespace] = [];
        }
        array_unshift($this->extensionConfigs[$namespace], $config);
        return;
    }
    $this->container
        ->prependExtensionConfig($namespace, $config);
}

API Navigation

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