interface Twig_CompilerInterface

Interface implemented by compiler classes.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_CompilerInterface

All classes that implement Twig_CompilerInterface

Deprecated

since 1.12 (to be removed in 2.0)

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
   */
  public function compile(Twig_NodeInterface $node);

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

}

Members

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