var/cache/dev/twig/71/71c5612f7ea5a9809a62b35c04c84d8ef4765130dc70dadd9ae3a30fc2dee3f5.php line 64

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* KunstmaanPagePartBundle:PagePartTwigExtension:widget.html.twig */
  14. class __TwigTemplate_70087e64abacc380e69ae5b6a5546e53e79a04cffe831675e983600c82434198 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""KunstmaanPagePartBundle:PagePartTwigExtension:widget.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""KunstmaanPagePartBundle:PagePartTwigExtension:widget.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable((isset($context["pageparts"]) || array_key_exists("pageparts"$context) ? $context["pageparts"] : (function () { throw new RuntimeError('Variable "pageparts" does not exist.'1$this->source); })()));
  36.         $context['loop'] = [
  37.           'parent' => $context['_parent'],
  38.           'index0' => 0,
  39.           'index'  => 1,
  40.           'first'  => true,
  41.         ];
  42.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  43.             $length count($context['_seq']);
  44.             $context['loop']['revindex0'] = $length 1;
  45.             $context['loop']['revindex'] = $length;
  46.             $context['loop']['length'] = $length;
  47.             $context['loop']['last'] = === $length;
  48.         }
  49.         foreach ($context['_seq'] as $context["_key"] => $context["box"]) {
  50.             // line 2
  51.             echo "    ";
  52.             $context["resource"] = $context["box"];
  53.             // line 3
  54.             echo "    ";
  55.             $this->loadTemplate(twig_get_attribute($this->env$this->source$context["box"], "getView", [=> (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })())], "method"falsefalsefalse3), "KunstmaanPagePartBundle:PagePartTwigExtension:widget.html.twig"3)->display($context);
  56.             ++$context['loop']['index0'];
  57.             ++$context['loop']['index'];
  58.             $context['loop']['first'] = false;
  59.             if (isset($context['loop']['length'])) {
  60.                 --$context['loop']['revindex0'];
  61.                 --$context['loop']['revindex'];
  62.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  63.             }
  64.         }
  65.         $_parent $context['_parent'];
  66.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['box'], $context['_parent'], $context['loop']);
  67.         $context array_intersect_key($context$_parent) + $_parent;
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.     }
  73.     public function getTemplateName()
  74.     {
  75.         return "KunstmaanPagePartBundle:PagePartTwigExtension:widget.html.twig";
  76.     }
  77.     public function isTraitable()
  78.     {
  79.         return false;
  80.     }
  81.     public function getDebugInfo()
  82.     {
  83.         return array (  63 => 3,  60 => 2,  43 => 1,);
  84.     }
  85.     public function getSourceContext()
  86.     {
  87.         return new Source("{% for box in pageparts %}
  88.     {% set resource = box %}
  89.     {% include box.getView(page) %}
  90. {% endfor %}
  91. ""KunstmaanPagePartBundle:PagePartTwigExtension:widget.html.twig""/var/www/gcs/html/dev/vendor/kunstmaan/pagepart-bundle/Resources/views/PagePartTwigExtension/widget.html.twig");
  92.     }
  93. }