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

Breadcrumb

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

function Environment::setLoader

3 calls to Environment::setLoader()
Environment::createTemplate in vendor/twig/twig/src/Environment.php
Creates a template from source.
Environment::__construct in vendor/twig/twig/src/Environment.php
Constructor.
TwigEnvironment::__construct in core/lib/Drupal/Core/Template/TwigEnvironment.php
Creates a TwigEnvironment object, including its cache and storage.

File

vendor/twig/twig/src/Environment.php, line 576

Class

Environment
Stores the Twig configuration and renders templates.

Namespace

Twig

Code

public function setLoader(LoaderInterface $loader) {
    $this->loader = $loader;
}

API Navigation

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