Drupal investigation

Twig.php 890B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /* foo.twig */
  3. class __TwigTemplate_VarDumperFixture_u75a09 extends Twig_Template
  4. {
  5. private $filename;
  6. public function __construct(Twig_Environment $env = null, $filename = null)
  7. {
  8. if (null !== $env) {
  9. parent::__construct($env);
  10. }
  11. $this->parent = false;
  12. $this->blocks = array();
  13. $this->filename = $filename;
  14. }
  15. protected function doDisplay(array $context, array $blocks = array())
  16. {
  17. // line 2
  18. throw new \Exception('Foobar');
  19. }
  20. public function getTemplateName()
  21. {
  22. return 'foo.twig';
  23. }
  24. public function getDebugInfo()
  25. {
  26. return array(21 => 2);
  27. }
  28. public function getSourceContext()
  29. {
  30. return new Twig_Source(" foo bar\n twig source\n\n", 'foo.twig', false === $this->filename ? null : ($this->filename ?: 'bar.twig'));
  31. }
  32. }