var/cache/website/dev/twig/57/572716daede8c628aff16003c5a59a6c522bbf26d297a068d0aa134b1ac3be82.php line 59

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* includes/blocks/form.html.twig */
  16. class __TwigTemplate_8939aa2f94770598dd2ec0cd62cf58b5c908b29c98a5705ea34d014e2dd15f75 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/form.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/form.html.twig"));
  38.         // line 1
  39.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'1$this->source); })()), "form", [], "any"falsefalsefalse1)) {
  40.             // line 2
  41.             yield "    ";
  42.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($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"falsefalsefalse2), "get", ["send"], "method"falsefalsefalse2) != "true")) {
  43.                 // line 3
  44.                 yield "        ";
  45.                 // line 4
  46.                 yield "        ";
  47.                 $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'4$this->source); })()), "form", [], "any"falsefalsefalse4), ["@SuluForm/themes/basic.html.twig"], true);
  48.                 // line 5
  49.                 yield "        ";
  50.                 yield                 $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'5$this->source); })()), "form", [], "any"falsefalsefalse5), 'form');
  51.                 yield "
  52.     ";
  53.             } else {
  54.                 // line 7
  55.                 yield "        ";
  56.                 yield CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["view"]) || array_key_exists("view"$context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.'7$this->source); })()), "form", [], "any"falsefalsefalse7), "entity", [], "any"falsefalsefalse7), "successText", [], "any"falsefalsefalse7);
  57.                 yield "
  58.     ";
  59.             }
  60.         }
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.         
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  65.         yield from [];
  66.     }
  67.     /**
  68.      * @codeCoverageIgnore
  69.      */
  70.     public function getTemplateName(): string
  71.     {
  72.         return "includes/blocks/form.html.twig";
  73.     }
  74.     /**
  75.      * @codeCoverageIgnore
  76.      */
  77.     public function isTraitable(): bool
  78.     {
  79.         return false;
  80.     }
  81.     /**
  82.      * @codeCoverageIgnore
  83.      */
  84.     public function getDebugInfo(): array
  85.     {
  86.         return array (  64 => 7,  58 => 5,  55 => 4,  53 => 3,  50 => 2,  48 => 1,);
  87.     }
  88.     public function getSourceContext(): Source
  89.     {
  90.         return new Source("{% if content.form %}
  91.     {% if app.request.get('send') != 'true' %}
  92.         {# FORM THEME #}
  93.         {% form_theme content.form '@SuluForm/themes/basic.html.twig' %}
  94.         {{ form(content.form) }}
  95.     {% else %}
  96.         {{ view.form.entity.successText|raw }}
  97.     {% endif %}
  98. {% endif %}""includes/blocks/form.html.twig""/home/coworking/www_preprod/templates/includes/blocks/form.html.twig");
  99.     }
  100. }