You are here

interface Twig_FunctionInterface in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/FunctionInterface.php \Twig_FunctionInterface

Represents a template function.

Use Twig_SimpleFunction instead.

@author Arnaud Le Blanc <arnaud.lb@gmail.com>

Hierarchy

Expanded class hierarchy of Twig_FunctionInterface

All classes that implement Twig_FunctionInterface

Deprecated

since 1.12 (to be removed in 2.0)

File

vendor/Twig/FunctionInterface.php, line 21

View source
interface Twig_FunctionInterface {

  /**
   * Compiles a function.
   *
   * @return string The PHP code for the function
   */
  public function compile();
  public function needsEnvironment();
  public function needsContext();
  public function getSafe(Twig_Node $filterArgs);
  public function setArguments($arguments);
  public function getArguments();

}

Members