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

Breadcrumb

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

function ChainLoader::addLoader

File

vendor/twig/twig/src/Loader/ChainLoader.php, line 37

Class

ChainLoader
Loads templates from other loaders.

Namespace

Twig\Loader

Code

public function addLoader(LoaderInterface $loader) : void {
    $current = $this->loaders;
    $this->loaders = (static function () use ($current, $loader) : \Generator {
        yield from $current;
        (yield $loader);
    })();
    $this->hasSourceCache = [];
}
RSS feed
Powered by Drupal