var/cache/dev/twig/e9/e99929e336ed0573322e7718fe3a9d2f.php line 40

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. /* areas/event/view.html.twig */
  16. class __TwigTemplate_0222659bc43fe0f35812a5770af705fe 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. $this->sandbox = $this->extensions[SandboxExtension::class];
  31. $this->checkSecurity();
  32. }
  33. protected function doDisplay(array $context, array $blocks = []): iterable
  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", "areas/event/view.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", "areas/event/view.html.twig"));
  40. // line 1
  41. yield "
  42. ";
  43. // line 2
  44. if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 2, $this->source); })())) {
  45. // line 3
  46. yield " ";
  47. yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "events", ["classes" => "Event", "title" => "Events"]);
  48. yield "
  49. ";
  50. } else {
  51. // line 5
  52. yield " ";
  53. yield from $this->loadTemplate("content/event/view.html.twig", "areas/event/view.html.twig", 5)->unwrap()->yield($context);
  54. // line 6
  55. yield " ";
  56. }
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59. yield from [];
  60. }
  61. /**
  62. * @codeCoverageIgnore
  63. */
  64. public function getTemplateName(): string
  65. {
  66. return "areas/event/view.html.twig";
  67. }
  68. /**
  69. * @codeCoverageIgnore
  70. */
  71. public function isTraitable(): bool
  72. {
  73. return false;
  74. }
  75. /**
  76. * @codeCoverageIgnore
  77. */
  78. public function getDebugInfo(): array
  79. {
  80. return array ( 64 => 6, 61 => 5, 55 => 3, 53 => 2, 50 => 1,);
  81. }
  82. public function getSourceContext(): Source
  83. {
  84. return new Source("
  85. {% if editmode %}
  86. {{ pimcore_relations(\"events\", { classes: 'Event', title: \"Events\" }) }}
  87. {% else %}
  88. {% include \"content/event/view.html.twig\" %}
  89. {% endif %}
  90. ", "areas/event/view.html.twig", "/var/www/vhosts/mensa-fasching.de/uat/releases/20250218080531/templates/areas/event/view.html.twig");
  91. }
  92. public function checkSecurity()
  93. {
  94. static $tags = ["if" => 2, "include" => 5];
  95. static $filters = [];
  96. static $functions = ["pimcore_relations" => 3];
  97. try {
  98. $this->sandbox->checkSecurity(
  99. ['if', 'include'],
  100. [],
  101. ['pimcore_relations'],
  102. $this->source
  103. );
  104. } catch (SecurityError $e) {
  105. $e->setSourceContext($this->source);
  106. if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  107. $e->setTemplateLine($tags[$e->getTagName()]);
  108. } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  109. $e->setTemplateLine($filters[$e->getFilterName()]);
  110. } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  111. $e->setTemplateLine($functions[$e->getFunctionName()]);
  112. }
  113. throw $e;
  114. }
  115. }
  116. }