Initial Drupal 11 with DDEV setup
This commit is contained in:
@ -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>
|
||||
@ -0,0 +1,142 @@
|
||||
<?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/block/block--system-powered-by-block.html.twig */
|
||||
class __TwigTemplate_ae7587e5ea85e5d30ea122f2ccb71394 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->blocks = [
|
||||
'content' => [$this, 'block_content'],
|
||||
];
|
||||
$this->sandbox = $this->extensions[SandboxExtension::class];
|
||||
$this->checkSecurity();
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
|
||||
{
|
||||
// line 1
|
||||
return "block.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$this->parent = $this->load("block.html.twig", 1);
|
||||
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
|
||||
}
|
||||
|
||||
// line 12
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 13
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, $this->extensions['Drupal\Core\Template\TwigExtension']->attachLibrary("olivero/powered-by-block"), "html", null, true);
|
||||
yield "
|
||||
<span>
|
||||
";
|
||||
// line 15
|
||||
yield t("Powered by", []);
|
||||
// line 16
|
||||
yield " <a href=\"https://www.drupal.org\">";
|
||||
yield t("Drupal", []);
|
||||
yield "</a>
|
||||
<span class=\"drupal-logo\" role=\"img\" aria-label=\"";
|
||||
// line 17
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Drupal Logo"));
|
||||
yield "\">
|
||||
";
|
||||
// line 18
|
||||
yield from $this->load("@olivero/../images/drupal.svg", 18)->unwrap()->yield($context);
|
||||
// line 19
|
||||
yield " </span>
|
||||
</span>
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--system-powered-by-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 79 => 19, 77 => 18, 73 => 17, 68 => 16, 66 => 15, 60 => 13, 53 => 12, 42 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--system-powered-by-block.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--system-powered-by-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["extends" => 1, "trans" => 15, "include" => 18];
|
||||
static $filters = ["escape" => 13, "t" => 17];
|
||||
static $functions = ["attach_library" => 13];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['extends', 'trans', 'include'],
|
||||
['escape', 't'],
|
||||
['attach_library'],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user