var/cache/dev_hc896b0aecebc6aae6bec469c82cd525f/twig/a9/a9054637504d4232040c03236f7c27ca622ecee215110e7a5e0c9fa2eb180de8.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @MomoLoginRedirectSW6/storefront/base.html.twig */
  16. class __TwigTemplate_202e6629dec561d79815d9700945896a extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'base_cookie_permission' => [$this'block_base_cookie_permission'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@IntediaDoofinderSW6/storefront/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MomoLoginRedirectSW6/storefront/base.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MomoLoginRedirectSW6/storefront/base.html.twig"));
  40.         $this->parent $this->loadTemplate("@IntediaDoofinderSW6/storefront/base.html.twig""@MomoLoginRedirectSW6/storefront/base.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_base_cookie_permission($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_cookie_permission"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_cookie_permission"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("base_cookie_permission"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 6
  61.         $context["momoLoginRedirectCookieName"] = twig_constant("Momocode\\MomoLoginRedirectSW6\\Storefront\\Framework\\Cookie\\CookieProviderDecorator::LOGIN_REDIRECT_COOKIE_KEY");
  62.         // line 9
  63.         echo "
  64.     ";
  65.         // line 10
  66.         $context["momoLoginRedirectDebugLoggingActive"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"MomoLoginRedirectSW6.config.debugLoggingActive");
  67.         // line 11
  68.         echo "
  69.     ";
  70.         // line 12
  71.         $context["momoLoginRedirectCookieData"] = ["route" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 13
  72. ($context["app"] ?? null), "request", [], "any"falsefalsefalse13), "attributes", [], "any"falsefalsefalse13), "get", [=> "_route"], "method"falsefalsefalse13), "routeParams" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 14
  73. ($context["app"] ?? null), "request", [], "any"falsetruefalse14), "attributes", [], "any"falsetruefalse14), "get", [=> "_route_params"], "method"truetruefalse14)) ? (_twig_default_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse14), "attributes", [], "any"falsetruefalse14), "get", [=> "_route_params"], "method"falsefalsefalse14), [])) : ([])), "queryParams" => ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 15
  74. ($context["app"] ?? null), "request", [], "any"falsetruefalse15), "query", [], "any"falsetruefalse15), "all", [], "any"truetruefalse15)) ? (_twig_default_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse15), "query", [], "any"falsetruefalse15), "all", [], "any"falsefalsefalse15), [])) : ([]))];
  75.         // line 17
  76.         echo "
  77.     <div data-momo-login-redirect=\"true\"
  78.          data-cookie-group=\"";
  79.         // line 19
  80.         echo sw_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"MomoLoginRedirectSW6.config.cookieGroup"), "html"nulltrue);
  81.         echo "\"
  82.          data-cookie-name=\"";
  83.         // line 20
  84.         echo sw_escape_filter($this->env, ($context["momoLoginRedirectCookieName"] ?? null), "html"nulltrue);
  85.         echo "\"
  86.          data-cookie-data=\"";
  87.         // line 21
  88.         echo sw_escape_filter($this->env$this->env->getFilter('json_encode')->getCallable()(($context["momoLoginRedirectCookieData"] ?? null)), "html"nulltrue);
  89.         echo "\"
  90.          data-debug-logging-active=\"";
  91.         // line 22
  92.         echo ((($context["momoLoginRedirectDebugLoggingActive"] ?? null)) ? ("true") : ("false"));
  93.         echo "\"
  94.     ></div>
  95. ";
  96.         
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.     }
  101.     public function getTemplateName()
  102.     {
  103.         return "@MomoLoginRedirectSW6/storefront/base.html.twig";
  104.     }
  105.     public function isTraitable()
  106.     {
  107.         return false;
  108.     }
  109.     public function getDebugInfo()
  110.     {
  111.         return array (  105 => 22,  101 => 21,  97 => 20,  93 => 19,  89 => 17,  87 => 15,  86 => 14,  85 => 13,  84 => 12,  81 => 11,  79 => 10,  76 => 9,  74 => 6,  68 => 4,  58 => 3,  35 => 2,);
  112.     }
  113.     public function getSourceContext()
  114.     {
  115.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  116. {% block base_cookie_permission %}
  117.     {{ parent() }}
  118.     {% set momoLoginRedirectCookieName = constant(
  119.         'Momocode\\\\MomoLoginRedirectSW6\\\\Storefront\\\\Framework\\\\Cookie\\\\CookieProviderDecorator::LOGIN_REDIRECT_COOKIE_KEY'
  120.     ) %}
  121.     {% set momoLoginRedirectDebugLoggingActive = config('MomoLoginRedirectSW6.config.debugLoggingActive') %}
  122.     {% set momoLoginRedirectCookieData = {
  123.         'route': app.request.attributes.get('_route'),
  124.         'routeParams': app.request.attributes.get('_route_params')|default([]),
  125.         'queryParams': app.request.query.all|default([]),
  126.     } %}
  127.     <div data-momo-login-redirect=\"true\"
  128.          data-cookie-group=\"{{ config('MomoLoginRedirectSW6.config.cookieGroup') }}\"
  129.          data-cookie-name=\"{{ momoLoginRedirectCookieName }}\"
  130.          data-cookie-data=\"{{ momoLoginRedirectCookieData|json_encode }}\"
  131.          data-debug-logging-active=\"{{ momoLoginRedirectDebugLoggingActive ? 'true' : 'false' }}\"
  132.     ></div>
  133. {% endblock %}""@MomoLoginRedirectSW6/storefront/base.html.twig""/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/custom/plugins/MomoLoginRedirectSW6/src/Resources/views/storefront/base.html.twig");
  134.     }
  135. }