function LeaveProfileNode::compile
Same name in this branch
- 10 core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/Profiler/LeaveProfileNode.php \Drupal\sdc_other_node_visitor\Twig\Profiler\LeaveProfileNode::compile()
Same name in other branches
- 11.x core/modules/sdc/tests/modules/sdc_other_node_visitor/src/Twig/Profiler/LeaveProfileNode.php \Drupal\sdc_other_node_visitor\Twig\Profiler\LeaveProfileNode::compile()
- 11.x core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/Profiler/LeaveProfileNode.php \Drupal\sdc_other_node_visitor\Twig\Profiler\LeaveProfileNode::compile()
File
-
core/
modules/ sdc/ tests/ modules/ sdc_other_node_visitor/ src/ Twig/ Profiler/ LeaveProfileNode.php, line 17
Class
- LeaveProfileNode
- Represents a profile leave node.
Namespace
Drupal\sdc_other_node_visitor\Twig\ProfilerCode
public function compile(Compiler $compiler) : void {
$compiler->write("\n")
->write(sprintf("\$%s->leave();\n\n", $this->getAttribute('var_name')));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.