interface 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

drupal/core/vendor/twig/twig/lib/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