Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TextNode.php

function TextNode::compile

Overrides Node::compile

File

vendor/twig/twig/src/Node/TextNode.php, line 31

Class

TextNode
Represents a text node.

Namespace

Twig\Node

Code

public function compile(Compiler $compiler) : void {
    $compiler->addDebugInfo($this);
    $compiler->write('yield ')
        ->string($this->getAttribute('data'))
        ->raw(";\n");
}
RSS feed
Powered by Drupal