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,153 @@
|
||||
<?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;
|
||||
|
||||
/* @help_topics/block.overview.html.twig */
|
||||
class __TwigTemplate_22fcf764d7eb6e6c8fcfc9120eacd521 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 7
|
||||
yield "<h2>";
|
||||
yield t("What are blocks?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("Blocks are boxes of content rendered into an area, or region, of a web page of your site. Blocks are placed and configured specifically for each theme.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("What are content blocks?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("Content blocks are blocks whose content you can edit. You can define one or more <em>block types</em>, and attach fields to each block type. Content blocks can be placed just like blocks provided by other modules.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("What is the block description?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 12
|
||||
yield t("The block description is an identification name for a block, which is shown in the administrative interface. It is not displayed on the site.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 13
|
||||
yield t("What is the block title?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 14
|
||||
yield t("The block title is the heading that is optionally shown to site visitors when the block is placed in a region.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 15
|
||||
yield t("Overview for managing blocks", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 16
|
||||
yield t("The <em>Block</em> module allows you to place blocks in regions of your installed themes, and configure block settings. The <em>Block Content</em> module allows you to manage block types and content blocks. See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/blocks-chapter.html\">Blocks (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/block.overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 90 => 19, 85 => 17, 81 => 16, 77 => 15, 73 => 14, 69 => 13, 65 => 12, 61 => 11, 57 => 10, 53 => 9, 49 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/block.overview.html.twig", "/var/www/html/web/core/modules/block/help_topics/block.overview.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 7];
|
||||
static $filters = [];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['trans'],
|
||||
[],
|
||||
[],
|
||||
$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