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

Breadcrumb

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

function CheckToStringNode::__construct

Overrides Node::__construct

File

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

Class

CheckToStringNode
Checks if casting an expression to __toString() is allowed by the sandbox.

Namespace

Twig\Node

Code

public function __construct(AbstractExpression $expr) {
    parent::__construct([
        'expr' => $expr,
    ], [], $expr->getTemplateLine());
}
RSS feed
Powered by Drupal