ComponentNode

Represents a component node

 class Cms\Twig\ComponentNode
extends Twig\Node\Node

Extends

Class Description
Twig\Node\Node

Methods

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

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