CaptureNode ​
- Type
- Class
- Namespace
- craft\web\twig\nodes
- Inherits
- craft\web\twig\nodes\CaptureNode »
Twig\Node\Node - Since
- 5.12.4
Captures a node's output as a raw string, like Twig\Node\CaptureNode.
Unlike Twig's node, macros imported in the captured body stay available after it.
Public Methods ​
| Method | Description |
|---|---|
| __construct() | |
| compile() |
__construct() ​
Arguments ​
$body$lineno
compile() ​
Arguments ​
$compiler