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

Breadcrumb

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

function ArrayLoader::__construct

Same name in this branch
  1. 11.1.x vendor/composer/composer/src/Composer/Package/Loader/ArrayLoader.php \Composer\Package\Loader\ArrayLoader::__construct()

Parameters

array $templates An array of templates (keys are the names, and values are the source code):

File

vendor/twig/twig/src/Loader/ArrayLoader.php, line 34

Class

ArrayLoader
Loads a template from an array.

Namespace

Twig\Loader

Code

public function __construct(array $templates = []) {
}

API Navigation

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