interface Twig_CompilerInterface

Interface implemented by compiler classes.

@package twig @author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_CompilerInterface

All classes that implement Twig_CompilerInterface

File

drupal/core/vendor/twig/twig/lib/Twig/CompilerInterface.php, line 18

View source
interface Twig_CompilerInterface {

  /**
   * Compiles a node.
   *
   * @param Twig_NodeInterface $node The node to compile
   *
   * @return Twig_CompilerInterface The current compiler instance
   */
  function compile(Twig_NodeInterface $node);

  /**
   * Gets the current PHP code after compilation.
   *
   * @return string The PHP code
   */
  function getSource();

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_CompilerInterface::compile function Compiles a node. 1
Twig_CompilerInterface::getSource function Gets the current PHP code after compilation. 1