*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/document/document-required.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/document/document-required.html.twig")); // line 1 yield "

Document

env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 12, $this->source); })()), "title", [], "any", false, false, false, 12), "html", null, true); yield "\">
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 19, $this->source); })()), "rank", [], "any", false, false, false, 19), "html", null, true); yield "\">
"; // line 31 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 31, $this->source); })()) == "view"))) { // line 32 yield " "; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 34 ($context["user"] ?? null), "roles", [], "any", false, true, false, 34), "ROLE_SUPERADMIN", [], "any", true, true, false, 34)) { // line 35 yield " "; } // line 37 yield "
"; // line 44 if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 44, $this->source); })()), "internal", [], "any", false, false, false, 44) == 1)) { // line 45 yield " "; } else { // line 47 yield " "; } // line 49 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/document/document-required.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 117 => 49, 113 => 47, 109 => 45, 107 => 44, 98 => 37, 94 => 35, 92 => 34, 88 => 32, 86 => 31, 71 => 19, 61 => 12, 48 => 1,); } public function getSourceContext(): Source { return new Source("

Document

{% if mode is defined and mode == 'view' %} {% elseif user.roles.ROLE_SUPERADMIN is defined %} {% endif %}
{% if data.internal == 1 %} {% else %} {% endif %}
", "partials/document/document-required.html.twig", "/var/www/cds-intranet/app/templates/partials/document/document-required.html.twig"); } }