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

Breadcrumb

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

function Template::__construct

Same name in this branch
  1. 11.1.x vendor/phpunit/php-text-template/src/Template.php \SebastianBergmann\Template\Template::__construct()
  2. 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Template.php \phpDocumentor\Reflection\DocBlock\Tags\Template::__construct()

File

vendor/twig/twig/src/Template.php, line 45

Class

Template
Default base class for compiled templates.

Namespace

Twig

Code

public function __construct(Environment $env) {
    $this->useYield = $env->useYield();
    $this->extensions = $env->getExtensions();
}

API Navigation

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