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