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,201 @@
|
||||
<?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/comment.configuring.html.twig */
|
||||
class __TwigTemplate_ad920fc2f76ced9bf103f8cea334c388 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 9
|
||||
$context["comment_permissions_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 10
|
||||
yield t("Administer comments and comment settings", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 12
|
||||
$context["comment_permissions_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["comment_permissions_link_text"] ?? null), "user.admin_permissions.module", ["modules" => "comment"]));
|
||||
// line 13
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 14
|
||||
$context["comment_type_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("comment.creating_type"));
|
||||
// line 15
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 16
|
||||
yield t("Configure a content entity type/subtype to allow commenting, using a comment type that you have configured. See @content_structure_topic for more about content entities and fields, and @comment_type_topic to configure a comment type.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), "@comment_type_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_type_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("Who can configure comments?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 18
|
||||
yield t("In order to follow these steps, the Field UI module must be installed. You'll need the Comment module's <em>@comment_permissions_link</em> permission, in order to change comment settings for a comment field. You'll also need to have the appropriate permission for adding fields to the entity type or subtype that the comments are attached to. For example, to add a comment field to content items provided by the Node module, you would need the Node module's <em>Administer content types</em> permission.", ["@comment_permissions_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_permissions_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 19
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Follow the steps in the related <em>Adding a field to an entity sub-type</em> topic to add a field of type <em>Comments</em> to the desired entity type or sub-type.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("On the first field settings page, choose the <em>Comment type</em> to use for this entity type or sub-type. You'll also notice that the <em>Allowed number of values</em> field cannot be changed for comment fields.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("On the next field settings page, enter the desired settings for the comment field:", []);
|
||||
// line 24
|
||||
yield " <ul>
|
||||
<li>";
|
||||
// line 25
|
||||
yield t("<em>Threading</em>: whether or not the comments are collected by threads, with people able to reply to particular comments instead of to the content entity itself.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("<em>Comments per page</em>: the maximum number of comments displayed on one page (a pager will be added if you exceed this limit).", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("<em>Anonymous commenting</em>: whether or not anonymous commenters are allowed or required to leave contact information with their comments (only applies if anonymous users have permission to post comments).", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 28
|
||||
yield t("<em>Show reply form on the same page as comments</em>: whether the comment reply form is displayed on the same page as the comments. If this is not selected, clicking <em>Reply</em> will open a new page with the reply form.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 29
|
||||
yield t("<em>Preview comments</em>: whether previewing comments before submission is <em>Required</em>, <em>Optional</em>, or <em>Disabled</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 30
|
||||
yield t("<em>Default value</em>: each individual entity has its own comment settings, but here you can set defaults for the comment settings for this entity type or subtype. The comment settings values are:", []);
|
||||
// line 31
|
||||
yield " <ul>
|
||||
<li>";
|
||||
// line 32
|
||||
yield t("<em>Open</em>: comments are allowed.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 33
|
||||
yield t("<em>Closed</em>: past comments remain visible, but no new comments are allowed.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 34
|
||||
yield t("<em>Hidden</em>: past comments are hidden, and no new comments are allowed.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
<h2>";
|
||||
// line 40
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/docs/8/core/modules/comment/administering-a-content-types-comment-settings\">";
|
||||
// line 42
|
||||
yield t("Online documentation for content comment settings", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/comment.configuring.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 138 => 42, 133 => 40, 124 => 34, 120 => 33, 116 => 32, 113 => 31, 111 => 30, 107 => 29, 103 => 28, 99 => 27, 95 => 26, 91 => 25, 88 => 24, 86 => 23, 82 => 22, 78 => 21, 73 => 19, 69 => 18, 65 => 17, 61 => 16, 56 => 15, 54 => 14, 52 => 13, 50 => 12, 46 => 10, 44 => 9,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/comment.configuring.html.twig", "/var/www/html/web/core/modules/comment/help_topics/comment.configuring.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 9, "trans" => 10];
|
||||
static $filters = ["escape" => 16];
|
||||
static $functions = ["render_var" => 12, "help_route_link" => 12, "help_topic_link" => 13];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_link', 'help_topic_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user