var/cache/dev/twig/bd/bd6b4f4d8bc29d9023956b1a1bbdec4e.php line 53

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. /* @Provider/document/room.html.twig */
  14. class __TwigTemplate_04bd4ee44f1c832d14e7cf79a8c6759e 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@Provider/layouts/layout.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""@Provider/document/room.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""@Provider/document/room.html.twig"));
  40.         // line 3
  41.         $macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this->loadTemplate("@Provider/macros/room.html.twig""@Provider/document/room.html.twig"3)->unwrap();
  42.         // line 1
  43.         $this->parent $this->loadTemplate("@Provider/layouts/layout.html.twig""@Provider/document/room.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_content($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  58.         // line 6
  59.         echo "    ";
  60.         echo twig_call_macro($macros["__internal_parse_0"], "macro_room", [(isset($context["roomElement"]) || array_key_exists("roomElement"$context) ? $context["roomElement"] : (function () { throw new RuntimeError('Variable "roomElement" does not exist.'6$this->source); })()), "h1"true], 6$context$this->getSourceContext());
  61.         echo "
  62. ";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.     }
  68.     public function getTemplateName()
  69.     {
  70.         return "@Provider/document/room.html.twig";
  71.     }
  72.     public function isTraitable()
  73.     {
  74.         return false;
  75.     }
  76.     public function getDebugInfo()
  77.     {
  78.         return array (  73 => 6,  63 => 5,  52 => 1,  50 => 3,  37 => 1,);
  79.     }
  80.     public function getSourceContext()
  81.     {
  82.         return new Source("{% extends '@Provider/layouts/layout.html.twig' %}
  83. {% from '@Provider/macros/room.html.twig' import room %}
  84. {% block content %}
  85.     {{ room(roomElement, 'h1', true) }}
  86. {% endblock %}""@Provider/document/room.html.twig""/html/pimcore/templates/bundles/ProviderBundle/document/room.html.twig");
  87.     }
  88.     
  89.     public function checkSecurity()
  90.     {
  91.         static $tags = array("from" => 3);
  92.         static $filters = array();
  93.         static $functions = array();
  94.         try {
  95.             $this->sandbox->checkSecurity(
  96.                 ['from'],
  97.                 [],
  98.                 []
  99.             );
  100.         } catch (SecurityError $e) {
  101.             $e->setSourceContext($this->source);
  102.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  103.                 $e->setTemplateLine($tags[$e->getTagName()]);
  104.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  105.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  106.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  107.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  108.             }
  109.             throw $e;
  110.         }
  111.     }
  112. }