var/cache/dev/twig/d9/d93c5edb27ff348824a65bd2d489d8c2.php line 77

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. /* @FOSSyliusImportExportPlugin/Crud/import.html.twig */
  14. class __TwigTemplate_79264dada62a8e54d98f9ea29c83eb71 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FOSSyliusImportExportPlugin/Crud/import.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""@FOSSyliusImportExportPlugin/Crud/import.html.twig"));
  33.         // line 1
  34.         $context["resource"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'1$this->source); })()), "settings", [], "any"falsefalsefalse1), "resources", [], "any"falsefalsefalse1), "metadata", [], "any"falsefalsefalse1), "name", [], "any"falsefalsefalse1);
  35.         // line 2
  36.         if (((isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'2$this->source); })()) == "customer")) {
  37.             // line 3
  38.             echo "    ";
  39.             $context["resource"] = "app_customer";
  40.         } elseif ((        // line 4
  41. (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'4$this->source); })()) == "payment_method")) {
  42.             // line 5
  43.             echo "    ";
  44.             $context["resource"] = "app_payment_method";
  45.         } elseif ((((        // line 6
  46. (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'6$this->source); })()) == "country") || ((isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'6$this->source); })()) == "tax_category")) || ((isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'6$this->source); })()) == "customer_group"))) {
  47.             // line 7
  48.             echo "    ";
  49.             $context["resource"] = null;
  50.         }
  51.         // line 9
  52.         echo "<div class=\"ui hidden divider\"></div>
  53. ";
  54.         // line 10
  55.         if ((isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'10$this->source); })())) {
  56.             // line 11
  57.             echo "    ";
  58.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.import_data:importFormAction", ["resource" =>             // line 13
  59. (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'13$this->source); })())]));
  60.             // line 14
  61.             echo "
  62. ";
  63.         }
  64.         // line 16
  65.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'16$this->source); })()), "settings", [], "any"falsefalsefalse16), "resources", [], "any"falsefalsefalse16), "metadata", [], "any"falsefalsefalse16), "name", [], "any"falsefalsefalse16) == "product")) {
  66.             // line 17
  67.             echo "    ";
  68.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.import_data:importFormAction", ["resource" => "app_product_variant"]));
  69.             // line 20
  70.             echo "
  71. ";
  72.         }
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.     }
  78.     public function getTemplateName()
  79.     {
  80.         return "@FOSSyliusImportExportPlugin/Crud/import.html.twig";
  81.     }
  82.     public function isTraitable()
  83.     {
  84.         return false;
  85.     }
  86.     public function getDebugInfo()
  87.     {
  88.         return array (  79 => 20,  76 => 17,  74 => 16,  70 => 14,  68 => 13,  66 => 11,  64 => 10,  61 => 9,  57 => 7,  55 => 6,  52 => 5,  50 => 4,  47 => 3,  45 => 2,  43 => 1,);
  89.     }
  90.     public function getSourceContext()
  91.     {
  92.         return new Source("{% set resource = block.settings.resources.metadata.name %}
  93. {% if resource == \"customer\" %}
  94.     {% set resource = \"app_customer\" %}
  95. {% elseif resource == \"payment_method\" %}
  96.     {% set resource = \"app_payment_method\" %}
  97. {% elseif resource == \"country\" or resource == \"tax_category\" or resource == \"customer_group\" %}
  98.     {% set resource = null %}
  99. {% endif %}
  100. <div class=\"ui hidden divider\"></div>
  101. {% if resource %}
  102.     {{ render(controller(
  103.         'sylius.controller.import_data:importFormAction',
  104.         {'resource': resource}
  105.     )) }}
  106. {% endif %}
  107. {% if block.settings.resources.metadata.name == \"product\" %}
  108.     {{ render(controller(
  109.         'sylius.controller.import_data:importFormAction',
  110.         {'resource': \"app_product_variant\"}
  111.     )) }}
  112. {% endif %}
  113. ""@FOSSyliusImportExportPlugin/Crud/import.html.twig""/var/www/html/templates/bundles/FOSSyliusImportExportPlugin/Crud/import.html.twig");
  114.     }
  115. }