public function Twig_Function::__construct

3 calls to Twig_Function::__construct()
Twig_Function_Function::__construct in drupal/core/vendor/twig/twig/lib/Twig/Function/Function.php
Twig_Function_Method::__construct in drupal/core/vendor/twig/twig/lib/Twig/Function/Method.php
Twig_Function_Node::__construct in drupal/core/vendor/twig/twig/lib/Twig/Function/Node.php
3 methods override Twig_Function::__construct()
Twig_Function_Function::__construct in drupal/core/vendor/twig/twig/lib/Twig/Function/Function.php
Twig_Function_Method::__construct in drupal/core/vendor/twig/twig/lib/Twig/Function/Method.php
Twig_Function_Node::__construct in drupal/core/vendor/twig/twig/lib/Twig/Function/Node.php

File

drupal/core/vendor/twig/twig/lib/Twig/Function.php, line 25

Class

Twig_Function
Represents a template function.

Code

public function __construct(array $options = array()) {
  $this->options = array_merge(array(
    'needs_environment' => false,
    'needs_context' => false,
    'callable' => null,
  ), $options);
}