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

Breadcrumb

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

function WithNode::__construct

Overrides Node::__construct

File

vendor/twig/twig/src/Node/WithNode.php, line 25

Class

WithNode
Represents a nested "with" scope.

Namespace

Twig\Node

Code

public function __construct(Node $body, ?Node $variables, bool $only, int $lineno) {
    $nodes = [
        'body' => $body,
    ];
    if (null !== $variables) {
        $nodes['variables'] = $variables;
    }
    parent::__construct($nodes, [
        'only' => $only,
    ], $lineno);
}
RSS feed
Powered by Drupal