Go to the source code of this file.
◆ twig_var_dump()
Definition at line 40 of file Debug.php.
41{
42 if (!
$env->isDebug()) {
43 return;
44 }
45
46 ob_start();
47
48 $count = func_num_args();
49 if (2 === $count) {
50 $vars = array();
51 foreach ($context as
$key => $value) {
54 }
55 }
56
57 var_dump($vars);
58 } else {
59 for (
$i = 2;
$i < $count; ++
$i) {
60 var_dump(func_get_arg(
$i));
61 }
62 }
63
64 return ob_get_clean();
65}
Default base class for compiled templates.
References $env, $i, and $key.