public function Twig_TokenStream::injectTokens in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/TokenStream.php \Twig_TokenStream::injectTokens()
- 7.2 vendor/Twig/TokenStream.php \Twig_TokenStream::injectTokens()
File
- vendor/
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));
}