User warning: mkdir(): Permission Denied in Drupal\Component\PhpStorage\FileStorage->createDirectory() (line 123 of core/lib/Drupal/Component/PhpStorage/FileStorage.php).
Drupal\Component\PhpStorage\FileStorage->createDirectory('sites/default/files/php/twig', 511) (Line: 73)
Drupal\Component\PhpStorage\FileStorage->ensureDirectory('sites/default/files/php/twig') (Line: 66)
Drupal\Component\PhpStorage\MTimeProtectedFastFileStorage->save('67470d855b0c7_main-navigation.twig_CFaOGClkm83hLgJ26rWzr69mm', '<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* molecules/navigation/main-navigation/main-navigation.twig */
class __TwigTemplate_feeb6ba02d630bcc69422d008482eab5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
$macros["_self"] = $this->macros["_self"] = $this;
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "
";
// line 17
echo "
";
// line 20
if (( !array_key_exists("account", $context) || (null === ($context["account"] ?? null)))) {
// line 21
echo " ";
$context["loginStatus"] = "userLoggedin--false";
} else {
// line 23
echo " ";
$context["loginStatus"] = "userLoggedin--true";
}
// line 25
echo "
";
// line 30
echo " extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["loginStatus"] ?? null), 30, $this->source), "html", null, true);
echo " row\">
";
// line 32
$this->loadTemplate("molecules/navigation/utilities-navigation/utilities-navigation.twig", "molecules/navigation/main-navigation/main-navigation.twig", 32)->display($context);
// line 33
echo "
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["items"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["menuSection"]) {
// line 39
echo "
<ul>
";
// line 43
$macros["macros"] = $this->macros["macros"] = $this;
// line 44
echo " ";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(twig_call_macro($macros["macros"], "macro_menu_tree", [$context["menuSection"]], 44, $context, $this->getSourceContext()));
echo "
</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuSection'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 50
echo "
";
// line 54
echo " extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["loginStatus"] ?? null), 54, $this->source), "html", null, true);
echo " row\">
";
// line 75
echo "
";
// line 76
$this->loadTemplate("molecules/navigation/utilities-navigation/utilities-navigation.twig", "molecules/navigation/main-navigation/main-navigation.twig", 76)->display($context);
// line 77
echo "
";
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
->checkDeprecations($context, ["account", "items", "_self", "toggle"]); }
// line 2
public function macro_menu_tree($__menuSection__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"menuSection" => $__menuSection__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start(function () { return ''; });
try {
// line 3
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["menuSection"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
// line 4
echo " <li if this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "options", [], "any", false, false, true, 4), "attributes", [], "any", false, false, true, 4), "class", [], "any", false, false, true, 4))) {
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "options", [], "any", false, false, true, 4), "attributes", [], "any", false, false, true, 4), "class", [], "any", false, false, true, 4), 4, $this->source), "html", null, true);
}
echo "\">
<a line echo this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "current", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo "\" ";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "aria_current", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo " href=\"";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "url", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo "\">";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "title", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo "</a>
";
// line 6
if (twig_get_attribute($this->env, $this->source, $context["link"], "items", [], "any", false, false, true, 6)) {
// line 7
echo "
";
// line 8
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["toggle"] ?? null), 8, $this->source), "html", null, true);
echo "
<ul>
";
// line 11
echo $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(twig_call_macro($macros["_self"], "macro_menu_tree", [twig_get_attribute($this->env, $this->source, $context["link"], "items", [], "any", false, false, true, 11)], 11, $context, $this->getSourceContext()));
echo "
</ul>
";
}
// line 14
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "molecules/navigation/main-navigation/main-navigation.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 181 => 14, 175 => 11, 169 => 8, 166 => 7, 164 => 6, 154 => 5, 147 => 4, 142 => 3, 129 => 2, 120 => 77, 118 => 76, 115 => 75, 108 => 54, 103 => 50, 90 => 44, 88 => 43, 82 => 39, 78 => 38, 71 => 33, 69 => 32, 63 => 30, 57 => 25, 53 => 23, 49 => 21, 47 => 20, 43 => 17, 40 => 1,);
}
public function getSourceContext()
{
return new Source("", "molecules/navigation/main-navigation/main-navigation.twig", "/srv/www/sjf.se/releases/2024-08-23T11:37:23.794Z/web/themes/custom/sjf/spacecraft/components/molecules/navigation/main-navigation/main-navigation.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 20, "set" => 21, "include" => 32, "for" => 38, "import" => 43, "macro" => 2);
static $filters = array("escape" => 30);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['if', 'set', 'include', 'for', 'import', 'macro'],
['escape'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}
') (Line: 112)
Drupal\Core\Template\TwigPhpStorageCache->write('67470d855b0c7_main-navigation.twig_CFaOGClkm83hLgJ26rWzr69mm', '<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* molecules/navigation/main-navigation/main-navigation.twig */
class __TwigTemplate_feeb6ba02d630bcc69422d008482eab5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
$macros["_self"] = $this->macros["_self"] = $this;
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "
";
// line 17
echo "
";
// line 20
if (( !array_key_exists("account", $context) || (null === ($context["account"] ?? null)))) {
// line 21
echo " ";
$context["loginStatus"] = "userLoggedin--false";
} else {
// line 23
echo " ";
$context["loginStatus"] = "userLoggedin--true";
}
// line 25
echo "
";
// line 30
echo " extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["loginStatus"] ?? null), 30, $this->source), "html", null, true);
echo " row\">
";
// line 32
$this->loadTemplate("molecules/navigation/utilities-navigation/utilities-navigation.twig", "molecules/navigation/main-navigation/main-navigation.twig", 32)->display($context);
// line 33
echo "
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["items"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["menuSection"]) {
// line 39
echo "
<ul>
";
// line 43
$macros["macros"] = $this->macros["macros"] = $this;
// line 44
echo " ";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(twig_call_macro($macros["macros"], "macro_menu_tree", [$context["menuSection"]], 44, $context, $this->getSourceContext()));
echo "
</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['menuSection'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 50
echo "
";
// line 54
echo " extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["loginStatus"] ?? null), 54, $this->source), "html", null, true);
echo " row\">
";
// line 75
echo "
";
// line 76
$this->loadTemplate("molecules/navigation/utilities-navigation/utilities-navigation.twig", "molecules/navigation/main-navigation/main-navigation.twig", 76)->display($context);
// line 77
echo "
";
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
->checkDeprecations($context, ["account", "items", "_self", "toggle"]); }
// line 2
public function macro_menu_tree($__menuSection__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"menuSection" => $__menuSection__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start(function () { return ''; });
try {
// line 3
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["menuSection"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
// line 4
echo " <li if this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "options", [], "any", false, false, true, 4), "attributes", [], "any", false, false, true, 4), "class", [], "any", false, false, true, 4))) {
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "options", [], "any", false, false, true, 4), "attributes", [], "any", false, false, true, 4), "class", [], "any", false, false, true, 4), 4, $this->source), "html", null, true);
}
echo "\">
<a line echo this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "current", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo "\" ";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "aria_current", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo " href=\"";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "url", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo "\">";
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["link"], "title", [], "any", false, false, true, 5), 5, $this->source), "html", null, true);
echo "</a>
";
// line 6
if (twig_get_attribute($this->env, $this->source, $context["link"], "items", [], "any", false, false, true, 6)) {
// line 7
echo "
";
// line 8
echo $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->sandbox->ensureToStringAllowed(($context["toggle"] ?? null), 8, $this->source), "html", null, true);
echo "
<ul>
";
// line 11
echo $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(twig_call_macro($macros["_self"], "macro_menu_tree", [twig_get_attribute($this->env, $this->source, $context["link"], "items", [], "any", false, false, true, 11)], 11, $context, $this->getSourceContext()));
echo "
</ul>
";
}
// line 14
echo " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "molecules/navigation/main-navigation/main-navigation.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 181 => 14, 175 => 11, 169 => 8, 166 => 7, 164 => 6, 154 => 5, 147 => 4, 142 => 3, 129 => 2, 120 => 77, 118 => 76, 115 => 75, 108 => 54, 103 => 50, 90 => 44, 88 => 43, 82 => 39, 78 => 38, 71 => 33, 69 => 32, 63 => 30, 57 => 25, 53 => 23, 49 => 21, 47 => 20, 43 => 17, 40 => 1,);
}
public function getSourceContext()
{
return new Source("", "molecules/navigation/main-navigation/main-navigation.twig", "/srv/www/sjf.se/releases/2024-08-23T11:37:23.794Z/web/themes/custom/sjf/spacecraft/components/molecules/navigation/main-navigation/main-navigation.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 20, "set" => 21, "include" => 32, "for" => 38, "import" => 43, "macro" => 2);
static $filters = array("escape" => 30);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['if', 'set', 'include', 'for', 'import', 'macro'],
['escape'],
[]
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}
') (Line: 351)
Twig\Environment->loadTemplate('__TwigTemplate_feeb6ba02d630bcc69422d008482eab5', 'molecules/navigation/main-navigation/main-navigation.twig', NULL) (Line: 322)
Twig\Template->loadTemplate('molecules/navigation/main-navigation/main-navigation.twig', 'themes/custom/sjf/templates/layouts/page--sok.html.twig', 6) (Line: 49)
__TwigTemplate_cf6d7bee7aaa9e87a617edff3f031f3b->doDisplay(Array, Array) (Line: 394)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367)
Twig\Template->display(Array) (Line: 379)
Twig\Template->render(Array) (Line: 38)
Twig\TemplateWrapper->render(Array) (Line: 39)
twig_render_template('themes/custom/sjf/templates/layouts/page--sok.html.twig', Array) (Line: 348)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 480)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240)
Drupal\Core\Render\Renderer->render(Array) (Line: 475)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 153)
__TwigTemplate_a8e525f8d722d780ef1b27836e6eb2c0->doDisplay(Array, Array) (Line: 394)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367)
Twig\Template->display(Array) (Line: 379)
Twig\Template->render(Array) (Line: 38)
Twig\TemplateWrapper->render(Array) (Line: 39)
twig_render_template('themes/custom/sjf/templates/layouts/html.html.twig', Array) (Line: 348)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 480)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240)
Drupal\Core\Render\Renderer->render(Array) (Line: 158)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 159)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)