var/cache/dev/twig/57/573a2c1fb2a53adc0ea16ccac141fcd1.php line 35

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. /* areas/product-grid/view.html.twig */
  14. class __TwigTemplate_4bf94c271f5402cf701bb0fe0bc3c725 extends 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-grid/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/product-grid/view.html.twig"));
  35.         // line 1
  36.         $context["filterDefinitionObject"] = (isset($context["filterDefinitionObject"]) || array_key_exists("filterDefinitionObject"$context) ? $context["filterDefinitionObject"] : (function () { throw new RuntimeError('Variable "filterDefinitionObject" does not exist.'1$this->source); })());
  37.         // line 2
  38.         $context["params"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsetrue2), "query", [], "any"falsefalsetrue2), "all", [], "any"falsefalsetrue2);
  39.         // line 3
  40.         echo "
  41. ";
  42.         // line 4
  43.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })())) {
  44.             // line 5
  45.             echo "    <div class=\"span3\">
  46.     </div>
  47.     <div class=\"span9\">
  48.         <h2>ProductFilter Object</h2>
  49.         <div>
  50.             ";
  51.             // line 11
  52.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""productFilter", ["types" => ["object"], "subtypes" => ["object" => ["object"]], "classes" => ["FilterDefinition"]]);
  53.             // line 17
  54.             echo "
  55.         </div>
  56.     </div>
  57.     <div style=\"clear: both\"></div>
  58. ";
  59.         }
  60.         // line 23
  61.         echo "
  62. ";
  63.         // line 24
  64.         if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""productFilter"), "isEmpty", [], "method"falsefalsetrue24)) {
  65.             // line 25
  66.             echo "    ";
  67.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\ProductController::listingAction"twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["params"]) || array_key_exists("params"$context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.'25$this->source); })()), 25$this->source), ["filterdefinition" => (isset($context["filterDefinitionObject"]) || array_key_exists("filterDefinitionObject"$context) ? $context["filterDefinitionObject"] : (function () { throw new RuntimeError('Variable "filterDefinitionObject" does not exist.'25$this->source); })()), "noLayout" => true])));
  68.             echo "
  69. ";
  70.         }
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.     }
  76.     /**
  77.      * @codeCoverageIgnore
  78.      */
  79.     public function getTemplateName()
  80.     {
  81.         return "areas/product-grid/view.html.twig";
  82.     }
  83.     /**
  84.      * @codeCoverageIgnore
  85.      */
  86.     public function isTraitable()
  87.     {
  88.         return false;
  89.     }
  90.     /**
  91.      * @codeCoverageIgnore
  92.      */
  93.     public function getDebugInfo()
  94.     {
  95.         return array (  77 => 25,  75 => 24,  72 => 23,  64 => 17,  62 => 11,  54 => 5,  52 => 4,  49 => 3,  47 => 2,  45 => 1,);
  96.     }
  97.     public function getSourceContext()
  98.     {
  99.         return new Source("{% set filterDefinitionObject = filterDefinitionObject %}
  100. {% set params = app.request.query.all %}
  101. {% if editmode %}
  102.     <div class=\"span3\">
  103.     </div>
  104.     <div class=\"span9\">
  105.         <h2>ProductFilter Object</h2>
  106.         <div>
  107.             {{ pimcore_relation(\"productFilter\",{
  108.                 \"types\": [\"object\"],
  109.                 \"subtypes\": {
  110.                     \"object\": [\"object\"],
  111.                 },
  112.                 \"classes\": [\"FilterDefinition\"]
  113.             }) }}
  114.         </div>
  115.     </div>
  116.     <div style=\"clear: both\"></div>
  117. {% endif %}
  118. {% if not pimcore_relation(\"productFilter\").isEmpty() %}
  119.     {{ render(controller('App\\\\Controller\\\\ProductController::listingAction', params | merge({\"filterdefinition\": filterDefinitionObject, \"noLayout\": true}))) }}
  120. {% endif %}""areas/product-grid/view.html.twig""/var/www/dev-10/templates/areas/product-grid/view.html.twig");
  121.     }
  122.     
  123.     public function checkSecurity()
  124.     {
  125.         static $tags = array("set" => 1"if" => 4);
  126.         static $filters = array("merge" => 25);
  127.         static $functions = array("pimcore_relation" => 11"render" => 25"controller" => 25);
  128.         try {
  129.             $this->sandbox->checkSecurity(
  130.                 ['set''if'],
  131.                 ['merge'],
  132.                 ['pimcore_relation''render''controller']
  133.             );
  134.         } catch (SecurityError $e) {
  135.             $e->setSourceContext($this->source);
  136.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  137.                 $e->setTemplateLine($tags[$e->getTagName()]);
  138.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  139.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  140.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  141.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  142.             }
  143.             throw $e;
  144.         }
  145.     }
  146. }