ContentNode

Represents a content node

 class Cms\Twig\ContentNode
extends Twig\Node\Node

Methods

public __construct (Twig\Node\Node $nodes, $paramNames, $lineno, string $tag = "content")

Parameters
Property Description
$nodes
Twig\Node\Node
$paramNames
mixed
$lineno
mixed
$tag
string
Returns
mixed

public compile (Twig\Compiler $compiler)

Compiles the node to PHP.

Parameters
Property Description
$compiler
Twig\Compiler

A TwigCompiler instance

Returns
mixed
Copyright © 2024 Winter CMS