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

Breadcrumb

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

function EmbedNode::__construct

Overrides IncludeNode::__construct

File

vendor/twig/twig/src/Node/EmbedNode.php, line 28

Class

EmbedNode
Represents an embed node.

Namespace

Twig\Node

Code

public function __construct(string $name, int $index, ?AbstractExpression $variables, bool $only, bool $ignoreMissing, int $lineno) {
    parent::__construct(new ConstantExpression('not_used', $lineno), $variables, $only, $ignoreMissing, $lineno);
    $this->setAttribute('name', $name);
    $this->setAttribute('index', $index);
}
RSS feed
Powered by Drupal