You are here

public function Twig_TokenStream::injectTokens in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/TokenStream.php \Twig_TokenStream::injectTokens()

File

vendor/twig/twig/lib/Twig/TokenStream.php, line 46

Class

Twig_TokenStream
Represents a token stream.

Code

public function injectTokens(array $tokens) {
  $this->tokens = array_merge(array_slice($this->tokens, 0, $this->current), $tokens, array_slice($this->tokens, $this->current));
}