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

Breadcrumb

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

function EmptyNode::setNode

Overrides Node::setNode

File

vendor/twig/twig/src/Node/EmptyNode.php, line 29

Class

EmptyNode
Represents an empty node.

Namespace

Twig\Node

Code

public function setNode(string $name, Node $node) : void {
    throw new \LogicException('EmptyNode cannot have children.');
}
RSS feed
Powered by Drupal