var/cache/dev/twig/be/bea85c54f414225560dbf9629a2ab9a2.php line 43

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. /* _widgets/header-search.html.twig */
  14. class __TwigTemplate_f5250c5192700373711ed5059afc6b7f 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_widgets/header-search.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_widgets/header-search.html.twig"));
  33.         // line 1
  34.         $cached $this->env->getRuntime('Twig\Extra\Cache\CacheRuntime')->getCache()->get("navbar_header_search_html", function (\Symfony\Contracts\Cache\ItemInterface $item) use ($context$macros) {
  35.             $item->expiresAfter(3600);
  36.             ob_start(function () { return ''; });
  37.             // line 2
  38.             echo "    ";
  39.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(twig_get_attribute($this->env$this->source, (isset($context["twigVars"]) || array_key_exists("twigVars"$context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.'2$this->source); })()), "searchForm", [], "any"falsefalsefalse2), 'form_start', ["attr" => ["class" => "input-group""id" => "gs_form"]]);
  40.             echo "
  41.         ";
  42.             // line 3
  43.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["twigVars"]) || array_key_exists("twigVars"$context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.'3$this->source); })()), "searchForm", [], "any"falsefalsefalse3), "term", [], "any"falsefalsefalse3), 'widget', ["attr" => ["class" => "form-control form-control-sm border-0 typeahead""aria-label" => "Suche""data-url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_searchresult_suggest")]]);
  44.             // line 9
  45.             echo "
  46.         <div class=\"input-group-append\">
  47.             <button class=\"btn btn-sm btn-light border-0\" type=\"submit\">
  48.                 <i class=\"fas fa-search\"></i>
  49.             </button>
  50.         </div>
  51.         ";
  52.             // line 15
  53.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["twigVars"]) || array_key_exists("twigVars"$context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.'15$this->source); })()), "searchForm", [], "any"falsefalsefalse15), 'rest');
  54.             echo "
  55.     ";
  56.             // line 16
  57.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(twig_get_attribute($this->env$this->source, (isset($context["twigVars"]) || array_key_exists("twigVars"$context) ? $context["twigVars"] : (function () { throw new RuntimeError('Variable "twigVars" does not exist.'16$this->source); })()), "searchForm", [], "any"falsefalsefalse16), 'form_end');
  58.             echo "
  59. ";
  60.             
  61.             return ob_get_clean();
  62.         });
  63.         echo '' === $cached '' : new Markup($cached$this->env->getCharset());
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.     }
  69.     public function getTemplateName()
  70.     {
  71.         return "_widgets/header-search.html.twig";
  72.     }
  73.     public function isTraitable()
  74.     {
  75.         return false;
  76.     }
  77.     public function getDebugInfo()
  78.     {
  79.         return array (  66 => 16,  62 => 15,  54 => 9,  52 => 3,  47 => 2,  43 => 1,);
  80.     }
  81.     public function getSourceContext()
  82.     {
  83.         return new Source("{% cache \"navbar_header_search_html\" ttl(3600) %}
  84.     {{ form_start(twigVars.searchForm, {'attr': {'class': 'input-group', 'id': 'gs_form'}}) }}
  85.         {{ form_widget(twigVars.searchForm.term, {
  86.             'attr': {
  87.                 'class': 'form-control form-control-sm border-0 typeahead',
  88.                 'aria-label': 'Suche',
  89.                 'data-url': path('app_searchresult_suggest')
  90.             }
  91.         }) }}
  92.         <div class=\"input-group-append\">
  93.             <button class=\"btn btn-sm btn-light border-0\" type=\"submit\">
  94.                 <i class=\"fas fa-search\"></i>
  95.             </button>
  96.         </div>
  97.         {{ form_rest(twigVars.searchForm) }}
  98.     {{ form_end(twigVars.searchForm) }}
  99. {% endcache %}
  100. ""_widgets/header-search.html.twig""/var/www/frontend-dev/apps/frontend/templates/_widgets/header-search.html.twig");
  101.     }
  102. }