var/cache/dev/twig/40/409b8f86a754f8da9513f00b18858a83.php line 33

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. /* core/footer-partial-exitimpersonation.html.twig */
  14. class __TwigTemplate_dfe095589384c7e57a0f0fbba7998e99 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""core/footer-partial-exitimpersonation.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""core/footer-partial-exitimpersonation.html.twig"));
  33.         // line 1
  34.         echo "        <div class=\"row\">
  35.                 <div class=\"col-12 text-center\">
  36.                         ";
  37.         // line 4
  38.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  39.             // line 5
  40.             echo "    \t\t\t\t\t\t<a href=\"";
  41.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage", ["_switch_user" => "_exit"]);
  42.             echo "\">Exit impersonation</a>
  43.                         ";
  44.         }
  45.         // line 7
  46.         echo "                </div>
  47.         </div>";
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     public function getTemplateName()
  54.     {
  55.         return "core/footer-partial-exitimpersonation.html.twig";
  56.     }
  57.     public function isTraitable()
  58.     {
  59.         return false;
  60.     }
  61.     public function getDebugInfo()
  62.     {
  63.         return array (  56 => 7,  50 => 5,  48 => 4,  43 => 1,);
  64.     }
  65.     public function getSourceContext()
  66.     {
  67.         return new Source("        <div class=\"row\">
  68.                 <div class=\"col-12 text-center\">
  69.                         {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  70.     \t\t\t\t\t\t<a href=\"{{ path('app_homepage', {'_switch_user': '_exit'}) }}\">Exit impersonation</a>
  71.                         {% endif %}
  72.                 </div>
  73.         </div>""core/footer-partial-exitimpersonation.html.twig""/home/horskaskola/public_html/templates/core/footer-partial-exitimpersonation.html.twig");
  74.     }
  75. }