Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Deny all requests from Apache 2.4+.
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
# Deny all requests from Apache 2.0-2.2.
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
# Turn off all options we don't need.
Options -Indexes -ExecCGI -Includes -MultiViews
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php.c>
php_flag engine off
</IfModule>

View File

@ -0,0 +1,232 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig */
class __TwigTemplate_737852cee1eca2b425bf3c7c250383d4 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
// line 23
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->extensions['Drupal\Core\Template\TwigExtension']->attachLibrary("olivero/navigation-secondary"), "html", null, true);
yield "
";
// line 25
$macros["menus"] = $this->macros["menus"] = $this;
// line 26
yield "
";
// line 31
$context["attributes"] = CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", ["menu"], "method", false, false, true, 31);
// line 32
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($macros["menus"]->getTemplateForMacro("macro_menu_links", $context, 32, $this->getSourceContext())->macro_menu_links(...[($context["items"] ?? null), ($context["attributes"] ?? null), 0]));
yield "
";
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
->checkDeprecations($context, ["_self", "items", "menu_level"]); yield from [];
}
// line 34
public function macro_menu_links($items = null, $attributes = null, $menu_level = null, ...$varargs): string|Markup
{
$macros = $this->macros;
$context = [
"items" => $items,
"attributes" => $attributes,
"menu_level" => $menu_level,
"varargs" => $varargs,
] + $this->env->getGlobals();
$blocks = [];
return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 35
yield " ";
$context["secondary_nav_level"] = ("secondary-nav__menu--level-" . (($context["menu_level"] ?? null) + 1));
// line 36
yield " ";
$macros["menus"] = $this;
// line 37
yield " ";
if ((($tmp = ($context["items"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 38
yield " <ul";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", ["secondary-nav__menu", ($context["secondary_nav_level"] ?? null)], "method", false, false, true, 38), "html", null, true);
yield ">
";
// line 39
$context["attributes"] = CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "removeClass", [($context["secondary_nav_level"] ?? null)], "method", false, false, true, 39);
// line 40
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["items"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 41
yield "
";
// line 42
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, true, 42), "isRouted", [], "any", false, false, true, 42) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, true, 42), "routeName", [], "any", false, false, true, 42) == "<nolink>"))) {
// line 43
yield " ";
$context["menu_item_type"] = "nolink";
// line 44
yield " ";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, true, 44), "isRouted", [], "any", false, false, true, 44) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, true, 44), "routeName", [], "any", false, false, true, 44) == "<button>"))) {
// line 45
yield " ";
$context["menu_item_type"] = "button";
// line 46
yield " ";
} else {
// line 47
yield " ";
$context["menu_item_type"] = "link";
// line 48
yield " ";
}
// line 49
yield "
";
// line 50
$context["item_classes"] = ["secondary-nav__menu-item", ("secondary-nav__menu-item--" . // line 52
($context["menu_item_type"] ?? null)), ("secondary-nav__menu-item--level-" . ( // line 53
($context["menu_level"] ?? null) + 1)), (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 54
$context["item"], "in_active_trail", [], "any", false, false, true, 54)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("secondary-nav__menu-item--active-trail") : ("")), (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 55
$context["item"], "below", [], "any", false, false, true, 55)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("secondary-nav__menu-item--has-children") : (""))];
// line 58
yield "
";
// line 59
$context["link_classes"] = ["secondary-nav__menu-link", ("secondary-nav__menu-link--" . // line 61
($context["menu_item_type"] ?? null)), ("secondary-nav__menu-link--level-" . ( // line 62
($context["menu_level"] ?? null) + 1)), (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 63
$context["item"], "in_active_trail", [], "any", false, false, true, 63)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("secondary-nav__menu-link--active-trail") : ("")), (((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 64
$context["item"], "below", [], "any", false, false, true, 64)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("secondary-nav__menu-link--has-children") : (""))];
// line 67
yield "
<li";
// line 68
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["item"], "attributes", [], "any", false, false, true, 68), "addClass", [($context["item_classes"] ?? null)], "method", false, false, true, 68), "html", null, true);
yield ">
";
// line 69
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->extensions['Drupal\Core\Template\TwigExtension']->getLink(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, true, 69), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, true, 69), ["class" => ($context["link_classes"] ?? null)]), "html", null, true);
yield "
";
// line 71
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "below", [], "any", false, false, true, 71)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 72
yield " ";
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($macros["menus"]->getTemplateForMacro("macro_menu_links", $context, 72, $this->getSourceContext())->macro_menu_links(...[CoreExtension::getAttribute($this->env, $this->source, $context["item"], "below", [], "any", false, false, true, 72), ($context["attributes"] ?? null), (($context["menu_level"] ?? null) + 1)]));
yield "
";
}
// line 74
yield " </li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
yield " </ul>
";
}
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 168 => 76, 161 => 74, 155 => 72, 153 => 71, 148 => 69, 144 => 68, 141 => 67, 139 => 64, 138 => 63, 137 => 62, 136 => 61, 135 => 59, 132 => 58, 130 => 55, 129 => 54, 128 => 53, 127 => 52, 126 => 50, 123 => 49, 120 => 48, 117 => 47, 114 => 46, 111 => 45, 108 => 44, 105 => 43, 103 => 42, 100 => 41, 95 => 40, 93 => 39, 88 => 38, 85 => 37, 82 => 36, 79 => 35, 65 => 34, 56 => 32, 54 => 31, 51 => 26, 49 => 25, 44 => 23,);
}
public function getSourceContext(): Source
{
return new Source("", "core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig", "/var/www/html/web/core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig");
}
public function checkSecurity()
{
static $tags = ["import" => 25, "set" => 31, "macro" => 34, "if" => 37, "for" => 40];
static $filters = ["escape" => 23];
static $functions = ["attach_library" => 23, "link" => 69];
try {
$this->sandbox->checkSecurity(
['import', 'set', 'macro', 'if', 'for'],
['escape'],
['attach_library', 'link'],
$this->source
);
} 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;
}
}
}