You are here

public function Twig_Compiler::raw in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Compiler.php \Twig_Compiler::raw()

Adds a raw string to the compiled code.

Parameters

string $string The string:

Return value

Twig_Compiler The current compiler instance

1 call to Twig_Compiler::raw()
Twig_Compiler::repr in vendor/Twig/Compiler.php
Returns a PHP representation of a given value.

File

vendor/Twig/Compiler.php, line 110

Class

Twig_Compiler
Compiles a node to PHP code.

Code

public function raw($string) {
  $this->source .= $string;
  return $this;
}