/** * Text node handler * * @param \F3\Fluid\Core\Parser\ParsingState $state * @param string $text * @return void * @author Sebastian Kurfürst <*****@*****.**> * @author Karsten Dambekalns <*****@*****.**> */ protected function textHandler(\F3\Fluid\Core\Parser\ParsingState $state, $text) { $node = $this->objectFactory->create('F3\\Fluid\\Core\\Parser\\SyntaxTree\\TextNode', $text); if ($this->configuration !== NULL) { foreach ($this->configuration->getTextInterceptors() as $interceptor) { $node = $interceptor->process($node); } } $state->getNodeFromStack()->addChildNode($node); }