Initial Drupal 11 with DDEV setup
This commit is contained in:
24
web/sites/default/files/php/twig/.htaccess
Normal file
24
web/sites/default/files/php/twig/.htaccess
Normal 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>
|
||||
@ -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,161 @@
|
||||
<?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/announcements_feed.overview.html.twig */
|
||||
class __TwigTemplate_6e11d42f05ac20065e4f998545c12a7e 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 5
|
||||
$context["actions_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 6
|
||||
yield t("Announcements", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 8
|
||||
$context["actions_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["actions_link_text"] ?? null), "announcements_feed.announcement"));
|
||||
// line 9
|
||||
$context["permissions_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 10
|
||||
yield t("View official announcements related to Drupal", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 12
|
||||
$context["permissions_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["permissions_link_text"] ?? null), "user.admin_permissions.module", ["modules" => "announcements_feed"]));
|
||||
// line 13
|
||||
yield "<h2>";
|
||||
yield t("What are Drupal announcements?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 14
|
||||
yield t("A feed of announcements about the Drupal project and Drupal Association programs.", []);
|
||||
yield "</p>
|
||||
<p>";
|
||||
// line 15
|
||||
yield t("The purpose of this feed is to provide a channel for outreach directly to Drupal site owners. This content must be highly relevant to site owners interests, serve the strategic goals of the project, and/or promote the sustainability of the project and the Drupal Association.", []);
|
||||
yield "</p>
|
||||
<p>";
|
||||
// line 16
|
||||
yield t("The module sources its content from a JSON feed generated from <a href=\"https://www.drupal.org/about/announcements\">here</a>. The governance policy for the content is documented <a href=\"https://www.drupal.org/node/3274085\">here</a>.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("How can I see the Announcements in my site?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 18
|
||||
yield t("If you have the toolbar module enabled, you will see a direct link to them in the toolbar. If the toolbar module is not enabled, the content can always be accessed in the <em>@actions_link</em> page.", ["@actions_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["actions_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 19
|
||||
yield t("Who can see the Announcements?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 20
|
||||
yield t("Users with the <em>@permissions_link</em> permission can view Drupal announcements.", ["@permissions_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["permissions_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 21
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/docs/core-modules-and-themes/core-modules/announcements-feed/announcements-feed-module-overview\">";
|
||||
// line 23
|
||||
yield t("Announcement module overview", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/announcements_feed.overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 98 => 23, 93 => 21, 89 => 20, 85 => 19, 81 => 18, 77 => 17, 73 => 16, 69 => 15, 65 => 14, 60 => 13, 58 => 12, 54 => 10, 52 => 9, 50 => 8, 46 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/announcements_feed.overview.html.twig", "/var/www/html/web/core/modules/announcements_feed/help_topics/announcements_feed.overview.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 5, "trans" => 6];
|
||||
static $filters = ["escape" => 18];
|
||||
static $functions = ["render_var" => 8, "help_route_link" => 8];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,132 @@
|
||||
<?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--page-title-block.html.twig */
|
||||
class __TwigTemplate_68ecf659085c070bba21b4afb4dcab8a 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 34
|
||||
yield "
|
||||
";
|
||||
// line 36
|
||||
$context["classes"] = ["block", ("block-" . \Drupal\Component\Utility\Html::getClass(CoreExtension::getAttribute($this->env, $this->source, // line 38
|
||||
($context["configuration"] ?? null), "provider", [], "any", false, false, true, 38))), ("block-" . \Drupal\Component\Utility\Html::getClass( // line 39
|
||||
($context["plugin_id"] ?? null))), (((($tmp = // line 40
|
||||
($context["layout"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (("layout--" . \Drupal\Component\Utility\Html::getClass(($context["layout"] ?? null)))) : (""))];
|
||||
// line 43
|
||||
yield "
|
||||
<div";
|
||||
// line 44
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 44), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 45
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_prefix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 46
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 47
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_suffix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
</div>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["configuration", "plugin_id", "layout", "attributes", "title_prefix", "content", "title_suffix"]); yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--page-title-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 67 => 47, 63 => 46, 59 => 45, 55 => 44, 52 => 43, 50 => 40, 49 => 39, 48 => 38, 47 => 36, 44 => 34,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--page-title-block.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--page-title-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 36];
|
||||
static $filters = ["clean_class" => 38, "escape" => 44];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set'],
|
||||
['clean_class', 'escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,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,156 @@
|
||||
<?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--primary-menu--plugin-id--search-form-block.html.twig */
|
||||
class __TwigTemplate_9617c2051c24713a1f51e8fcbe63fcf2 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 = [
|
||||
'content' => [$this, 'block_content'],
|
||||
];
|
||||
$this->sandbox = $this->extensions[SandboxExtension::class];
|
||||
$this->checkSecurity();
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 32
|
||||
$context["classes"] = ["block", "block-search-narrow"];
|
||||
// line 37
|
||||
yield "<div";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 37), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 38
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_prefix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 39
|
||||
if ((($tmp = ($context["label"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 40
|
||||
yield " <h2";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_attributes"] ?? null), "html", null, true);
|
||||
yield ">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["label"] ?? null), "html", null, true);
|
||||
yield "</h2>
|
||||
";
|
||||
}
|
||||
// line 42
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_suffix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 43
|
||||
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
||||
// line 48
|
||||
yield "</div>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["attributes", "title_prefix", "label", "title_attributes", "title_suffix", "content_attributes", "content"]); yield from [];
|
||||
}
|
||||
|
||||
// line 43
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 44
|
||||
yield " <div";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["content_attributes"] ?? null), "addClass", ["content"], "method", false, false, true, 44), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 45
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
</div>
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--primary-menu--plugin-id--search-form-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 92 => 45, 87 => 44, 80 => 43, 73 => 48, 71 => 43, 66 => 42, 58 => 40, 56 => 39, 52 => 38, 47 => 37, 45 => 32,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--primary-menu--plugin-id--search-form-block.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--primary-menu--plugin-id--search-form-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 32, "if" => 39, "block" => 43];
|
||||
static $filters = ["escape" => 37];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'if', 'block'],
|
||||
['escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,172 @@
|
||||
<?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--secondary-menu--plugin-id--search-form-block.html.twig */
|
||||
class __TwigTemplate_155d35773bd4452ed6f24ada27bec5c3 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 = [
|
||||
'content' => [$this, 'block_content'],
|
||||
];
|
||||
$this->sandbox = $this->extensions[SandboxExtension::class];
|
||||
$this->checkSecurity();
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 26
|
||||
$context["classes"] = ["block", "block-search-wide"];
|
||||
// line 31
|
||||
yield "<div";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 31), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 32
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_prefix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 33
|
||||
if ((($tmp = ($context["label"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 34
|
||||
yield " <h2";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_attributes"] ?? null), "html", null, true);
|
||||
yield ">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["label"] ?? null), "html", null, true);
|
||||
yield "</h2>
|
||||
";
|
||||
}
|
||||
// line 36
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_suffix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 37
|
||||
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
||||
// line 56
|
||||
yield "</div>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["attributes", "title_prefix", "label", "title_attributes", "title_suffix", "content_attributes", "content"]); yield from [];
|
||||
}
|
||||
|
||||
// line 37
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 38
|
||||
yield " <button class=\"block-search-wide__button\" aria-label=\"";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Search Form"));
|
||||
yield "\" data-drupal-selector=\"block-search-wide-button\">
|
||||
";
|
||||
// line 39
|
||||
yield from $this->load("@olivero/../images/search.svg", 39)->unwrap()->yield($context);
|
||||
// line 40
|
||||
yield " <span class=\"block-search-wide__button-close\"></span>
|
||||
</button>
|
||||
|
||||
";
|
||||
// line 48
|
||||
yield " <div";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["content_attributes"] ?? null), "addClass", ["block-search-wide__wrapper"], "method", false, false, true, 48), "setAttribute", ["data-drupal-selector", "block-search-wide-wrapper"], "method", false, false, true, 48), "setAttribute", ["tabindex", "-1"], "method", false, false, true, 48), "html", null, true);
|
||||
yield ">
|
||||
<div class=\"block-search-wide__container\">
|
||||
<div class=\"block-search-wide__grid\">
|
||||
";
|
||||
// line 51
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--secondary-menu--plugin-id--search-form-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 106 => 51, 99 => 48, 94 => 40, 92 => 39, 87 => 38, 80 => 37, 73 => 56, 71 => 37, 66 => 36, 58 => 34, 56 => 33, 52 => 32, 47 => 31, 45 => 26,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--secondary-menu--plugin-id--search-form-block.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--secondary-menu--plugin-id--search-form-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 26, "if" => 33, "block" => 37, "include" => 39];
|
||||
static $filters = ["escape" => 31, "t" => 38];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'if', 'block', 'include'],
|
||||
['escape', 't'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,160 @@
|
||||
<?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--secondary-menu.html.twig */
|
||||
class __TwigTemplate_7d6793d5208c5c35fec65937b75ce5fc 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 = [
|
||||
'content' => [$this, 'block_content'],
|
||||
];
|
||||
$this->sandbox = $this->extensions[SandboxExtension::class];
|
||||
$this->checkSecurity();
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 36
|
||||
$context["classes"] = ["block", "block-menu", "navigation", ("menu--" . \Drupal\Component\Utility\Html::getClass( // line 40
|
||||
($context["derivative_plugin_id"] ?? null))), "secondary-nav"];
|
||||
// line 44
|
||||
$context["heading_id"] = (CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "id", [], "any", false, false, true, 44) . \Drupal\Component\Utility\Html::getId("-menu"));
|
||||
// line 45
|
||||
yield "<nav ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 45), "setAttribute", ["aria-labelledby", ($context["heading_id"] ?? null)], "method", false, false, true, 45), "setAttribute", ["role", "navigation"], "method", false, false, true, 45), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 47
|
||||
yield " ";
|
||||
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["configuration"] ?? null), "label_display", [], "any", false, false, true, 47)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 48
|
||||
yield " ";
|
||||
$context["title_attributes"] = CoreExtension::getAttribute($this->env, $this->source, ($context["title_attributes"] ?? null), "addClass", ["visually-hidden"], "method", false, false, true, 48);
|
||||
// line 49
|
||||
yield " ";
|
||||
}
|
||||
// line 50
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_prefix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
<span";
|
||||
// line 51
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["title_attributes"] ?? null), "setAttribute", ["id", ($context["heading_id"] ?? null)], "method", false, false, true, 51), "html", null, true);
|
||||
yield ">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["configuration"] ?? null), "label", [], "any", false, false, true, 51), "html", null, true);
|
||||
yield "</span>
|
||||
";
|
||||
// line 52
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_suffix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 54
|
||||
yield " ";
|
||||
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
||||
// line 57
|
||||
yield "</nav>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["derivative_plugin_id", "attributes", "configuration", "title_prefix", "title_suffix", "content"]); yield from [];
|
||||
}
|
||||
|
||||
// line 54
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 55
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--secondary-menu.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 96 => 55, 89 => 54, 82 => 57, 79 => 54, 75 => 52, 69 => 51, 64 => 50, 61 => 49, 58 => 48, 55 => 47, 50 => 45, 48 => 44, 46 => 40, 45 => 36,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--secondary-menu.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--secondary-menu.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 36, "if" => 47, "block" => 54];
|
||||
static $filters = ["clean_class" => 40, "clean_id" => 44, "escape" => 45];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'if', 'block'],
|
||||
['clean_class', 'clean_id', 'escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,178 @@
|
||||
<?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-branding-block.html.twig */
|
||||
class __TwigTemplate_318cf12496fea99011cf051bcf776480 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;
|
||||
// line 16
|
||||
$context["attributes"] = CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", ["site-branding"], "method", false, false, true, 16);
|
||||
// line 1
|
||||
$this->parent = $this->load("block.html.twig", 1);
|
||||
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["site_logo", "site_name", "site_slogan"]); }
|
||||
|
||||
// line 17
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 18
|
||||
yield " <div class=\"site-branding__inner\">
|
||||
";
|
||||
// line 19
|
||||
if ((($tmp = ($context["site_logo"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 20
|
||||
yield " <a href=\"";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\Core\Template\TwigExtension']->getPath("<front>"));
|
||||
yield "\" rel=\"home\" class=\"site-branding__logo\">
|
||||
<img src=\"";
|
||||
// line 21
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["site_logo"] ?? null), "html", null, true);
|
||||
yield "\" alt=\"";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Home"));
|
||||
yield "\" fetchpriority=\"high\"/>
|
||||
</a>
|
||||
";
|
||||
}
|
||||
// line 24
|
||||
yield " ";
|
||||
if ((($context["site_name"] ?? null) || ($context["site_slogan"] ?? null))) {
|
||||
// line 25
|
||||
yield " <div class=\"site-branding__text\">
|
||||
";
|
||||
// line 26
|
||||
if ((($tmp = ($context["site_name"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 27
|
||||
yield " <div class=\"site-branding__name\">
|
||||
<a href=\"";
|
||||
// line 28
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\Core\Template\TwigExtension']->getPath("<front>"));
|
||||
yield "\" rel=\"home\" title=\"";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar(t("Home"));
|
||||
yield "\">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["site_name"] ?? null), "html", null, true);
|
||||
yield "</a>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
// line 31
|
||||
yield " ";
|
||||
if ((($tmp = ($context["site_slogan"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 32
|
||||
yield " <div class=\"site-branding__slogan\">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["site_slogan"] ?? null), "html", null, true);
|
||||
yield "</div>
|
||||
";
|
||||
}
|
||||
// line 34
|
||||
yield " </div>
|
||||
";
|
||||
}
|
||||
// line 36
|
||||
yield " </div>
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--system-branding-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 116 => 36, 112 => 34, 106 => 32, 103 => 31, 93 => 28, 90 => 27, 88 => 26, 85 => 25, 82 => 24, 74 => 21, 69 => 20, 67 => 19, 64 => 18, 57 => 17, 51 => 1, 49 => 16, 42 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--system-branding-block.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--system-branding-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["extends" => 1, "set" => 16, "if" => 19];
|
||||
static $filters = ["escape" => 21, "t" => 21];
|
||||
static $functions = ["path" => 20];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['extends', 'set', 'if'],
|
||||
['escape', 't'],
|
||||
['path'],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,160 @@
|
||||
<?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-menu-block.html.twig */
|
||||
class __TwigTemplate_5f24b778c0f1f7a6fb157d4f8e4ef614 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 = [
|
||||
'content' => [$this, 'block_content'],
|
||||
];
|
||||
$this->sandbox = $this->extensions[SandboxExtension::class];
|
||||
$this->checkSecurity();
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 36
|
||||
$context["classes"] = ["block", "block-menu", "navigation", ("menu--" . \Drupal\Component\Utility\Html::getClass( // line 40
|
||||
($context["derivative_plugin_id"] ?? null)))];
|
||||
// line 43
|
||||
$context["heading_id"] = (CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "id", [], "any", false, false, true, 43) . \Drupal\Component\Utility\Html::getId("-menu"));
|
||||
// line 44
|
||||
yield "<nav ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 44), "setAttribute", ["aria-labelledby", ($context["heading_id"] ?? null)], "method", false, false, true, 44), "setAttribute", ["role", "navigation"], "method", false, false, true, 44), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 46
|
||||
yield " ";
|
||||
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, ($context["configuration"] ?? null), "label_display", [], "any", false, false, true, 46)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 47
|
||||
yield " ";
|
||||
$context["title_attributes"] = CoreExtension::getAttribute($this->env, $this->source, ($context["title_attributes"] ?? null), "addClass", ["visually-hidden"], "method", false, false, true, 47);
|
||||
// line 48
|
||||
yield " ";
|
||||
}
|
||||
// line 49
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_prefix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
<h2";
|
||||
// line 50
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["title_attributes"] ?? null), "addClass", ["block__title"], "method", false, false, true, 50), "setAttribute", ["id", ($context["heading_id"] ?? null)], "method", false, false, true, 50), "html", null, true);
|
||||
yield ">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["configuration"] ?? null), "label", [], "any", false, false, true, 50), "html", null, true);
|
||||
yield "</h2>
|
||||
";
|
||||
// line 51
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_suffix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 53
|
||||
yield " ";
|
||||
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
||||
// line 56
|
||||
yield "</nav>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["derivative_plugin_id", "attributes", "configuration", "title_prefix", "title_suffix", "content"]); yield from [];
|
||||
}
|
||||
|
||||
// line 53
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 54
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/themes/olivero/templates/block/block--system-menu-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 96 => 54, 89 => 53, 82 => 56, 79 => 53, 75 => 51, 69 => 50, 64 => 49, 61 => 48, 58 => 47, 55 => 46, 50 => 44, 48 => 43, 46 => 40, 45 => 36,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/themes/olivero/templates/block/block--system-menu-block.html.twig", "/var/www/html/web/core/themes/olivero/templates/block/block--system-menu-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 36, "if" => 46, "block" => 53];
|
||||
static $filters = ["clean_class" => 40, "clean_id" => 43, "escape" => 44];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'if', 'block'],
|
||||
['clean_class', 'clean_id', 'escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,108 @@
|
||||
<?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/modules/system/templates/block--system-messages-block.html.twig */
|
||||
class __TwigTemplate_60c7315831bdee114e2df342dc0e4a43 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 15
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["content"]); yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/modules/system/templates/block--system-messages-block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 44 => 15,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/modules/system/templates/block--system-messages-block.html.twig", "/var/www/html/web/core/modules/system/templates/block--system-messages-block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = [];
|
||||
static $filters = ["escape" => 15];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
[],
|
||||
['escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,171 @@
|
||||
<?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.configure.html.twig */
|
||||
class __TwigTemplate_24ec031d00e72b0f20493b5a34c01294 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
|
||||
$context["layout_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Block layout", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 8
|
||||
$context["layout_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["layout_link_text"] ?? null), "block.admin_display"));
|
||||
// line 9
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("Configure the settings of a block that was previously placed in a region of a theme.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>@layout_link</em>.", ["@layout_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["layout_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("Click the name of the theme that contains the block.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("Optionally, click <em>Demonstrate block regions</em> to see the regions of the theme.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("If you only want to change the region where a block is located, or the ordering of blocks within a region, drag blocks to their desired positions and click <em>Save blocks</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("If you want to change additional settings, find the region where the block you want to update is currently located, and click <em>Configure</em> in the line of the block description.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Edit the block's settings. The available settings vary depending on the module that provides the block, but for all blocks you can change:", []);
|
||||
// line 19
|
||||
yield " <ul>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("<em>Block title</em>: The heading for the block on your site -- for some blocks, you will need to check the <em>Override title</em> checkbox in order to enter a title", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("<em>Display title</em>: Check the box if you want the title displayed", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("<em>Visibility</em>: Add conditions for when the block should be displayed", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("<em>Region</em>: Change the theme region the block is displayed in", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("Click <em>Save block</em>.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/block.configure.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 108 => 26, 102 => 23, 98 => 22, 94 => 21, 90 => 20, 87 => 19, 85 => 18, 81 => 17, 77 => 16, 73 => 15, 69 => 14, 65 => 13, 60 => 11, 56 => 10, 51 => 9, 49 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/block.configure.html.twig", "/var/www/html/web/core/modules/block/help_topics/block.configure.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 7];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 8, "help_route_link" => 8];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,164 @@
|
||||
<?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;
|
||||
|
||||
/* block.html.twig */
|
||||
class __TwigTemplate_ddf278a132953c37bda78e3490ff9496 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 = [
|
||||
'content' => [$this, 'block_content'],
|
||||
];
|
||||
$this->sandbox = $this->extensions[SandboxExtension::class];
|
||||
$this->checkSecurity();
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 34
|
||||
yield "
|
||||
";
|
||||
// line 36
|
||||
$context["classes"] = ["block", ("block-" . \Drupal\Component\Utility\Html::getClass(CoreExtension::getAttribute($this->env, $this->source, // line 38
|
||||
($context["configuration"] ?? null), "provider", [], "any", false, false, true, 38))), ("block-" . \Drupal\Component\Utility\Html::getClass( // line 39
|
||||
($context["plugin_id"] ?? null))), (((($tmp = // line 40
|
||||
($context["layout"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (("layout--" . \Drupal\Component\Utility\Html::getClass(($context["layout"] ?? null)))) : (""))];
|
||||
// line 43
|
||||
yield "
|
||||
<div";
|
||||
// line 44
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 44), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 45
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_prefix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 46
|
||||
if ((($tmp = ($context["label"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
||||
// line 47
|
||||
yield " <h2";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["title_attributes"] ?? null), "addClass", ["block__title"], "method", false, false, true, 47), "html", null, true);
|
||||
yield ">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["label"] ?? null), "html", null, true);
|
||||
yield "</h2>
|
||||
";
|
||||
}
|
||||
// line 49
|
||||
yield " ";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["title_suffix"] ?? null), "html", null, true);
|
||||
yield "
|
||||
";
|
||||
// line 50
|
||||
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
|
||||
// line 55
|
||||
yield "</div>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["configuration", "plugin_id", "layout", "attributes", "title_prefix", "label", "title_attributes", "title_suffix", "content_attributes", "content"]); yield from [];
|
||||
}
|
||||
|
||||
// line 50
|
||||
/**
|
||||
* @return iterable<null|scalar|\Stringable>
|
||||
*/
|
||||
public function block_content(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 51
|
||||
yield " <div";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["content_attributes"] ?? null), "addClass", ["block__content"], "method", false, false, true, 51), "html", null, true);
|
||||
yield ">
|
||||
";
|
||||
// line 52
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["content"] ?? null), "html", null, true);
|
||||
yield "
|
||||
</div>
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "block.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 100 => 52, 95 => 51, 88 => 50, 81 => 55, 79 => 50, 74 => 49, 66 => 47, 64 => 46, 60 => 45, 56 => 44, 53 => 43, 51 => 40, 50 => 39, 49 => 38, 48 => 36, 45 => 34,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "block.html.twig", "core/themes/olivero/templates/block/block.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 36, "if" => 46, "block" => 50];
|
||||
static $filters = ["clean_class" => 38, "escape" => 44];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'if', 'block'],
|
||||
['clean_class', 'escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,151 @@
|
||||
<?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.place.html.twig */
|
||||
class __TwigTemplate_6181bf14be9f456d965dfaf92a3433c4 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
|
||||
$context["layout_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 8
|
||||
yield t("Block layout", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["layout_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["layout_link_text"] ?? null), "block.admin_display"));
|
||||
// line 11
|
||||
$context["configure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("block.configure"));
|
||||
// line 12
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Place a block into a theme's region.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > @layout_link.", ["@layout_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["layout_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("Click the name of the theme that you want to place the block in.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Optionally, click <em>Demonstrate block regions</em> to see the regions of the theme.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Find the region where you want the block, and click <em>Place block</em> in that region. A modal dialog will pop up.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Find the block you want to place and click <em>Place block</em>. A <em>Configure block</em> modal dialog will pop up.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Configure the block and click <em>Save block</em>; see @configure_topic for configuration details.", ["@configure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["configure_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/block.place.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 88 => 21, 84 => 20, 80 => 19, 76 => 18, 72 => 17, 68 => 16, 63 => 14, 59 => 13, 54 => 12, 52 => 11, 50 => 10, 46 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/block.place.html.twig", "/var/www/html/web/core/modules/block/help_topics/block.place.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 8];
|
||||
static $filters = ["escape" => 16];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,144 @@
|
||||
<?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_content.add.html.twig */
|
||||
class __TwigTemplate_b6f439f2e7ecc58937196bce241065b0 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["library_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Content blocks", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["library_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["library_link_text"] ?? null), "entity.block_content.collection"));
|
||||
// line 11
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 12
|
||||
yield t("Create a content block, which can later be placed on the site.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 13
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Content</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Open the @library_link tab.", ["@library_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["library_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("Click <em>Add content block</em>. If you have more than one block type defined on your site, click the name of the type you want to create.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Enter a description of your block (to be shown to administrators) and the body text for your block.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Click <em>Save</em>.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/block_content.add.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 81 => 19, 77 => 18, 73 => 17, 69 => 16, 65 => 15, 60 => 13, 56 => 12, 51 => 11, 49 => 10, 44 => 9,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/block_content.add.html.twig", "/var/www/html/web/core/modules/block_content/help_topics/block_content.add.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 9, "trans" => 9];
|
||||
static $filters = ["escape" => 16];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,148 @@
|
||||
<?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_content.type.html.twig */
|
||||
class __TwigTemplate_2462d5ff4c5873fe4b8f28860fcefee2 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 12
|
||||
$context["types_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Block types", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 13
|
||||
$context["types_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["types_link_text"] ?? null), "entity.block_content_type.collection"));
|
||||
// line 14
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 15
|
||||
yield t("Define a block type and its fields.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 16
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>@types_link</em>.", ["@types_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["types_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Click <em>Add block type</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Enter a label for this block type (shown in the administrative interface). Optionally, edit the automatically-generated machine name or the description.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Click <em>Save</em>. You will be returned to the <em>Block types</em> page.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("Click <em>Manage fields</em> in the row of your new block type, and add the desired fields to your block type.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("Optionally, click <em>Manage form display</em> or <em>Manage display</em> to change the editing form or field display for your block type.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/block_content.type.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 85 => 23, 81 => 22, 77 => 21, 73 => 20, 69 => 19, 65 => 18, 60 => 16, 56 => 15, 51 => 14, 49 => 13, 44 => 12,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/block_content.type.html.twig", "/var/www/html/web/core/modules/block_content/help_topics/block_content.type.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 12, "trans" => 12];
|
||||
static $filters = ["escape" => 18];
|
||||
static $functions = ["render_var" => 13, "help_route_link" => 13];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,158 @@
|
||||
<?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/breakpoint.overview.html.twig */
|
||||
class __TwigTemplate_92ff624d6305b5c4f112446987f38655 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 6
|
||||
yield "<h2>";
|
||||
yield t("What are breakpoints?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 7
|
||||
yield t("Breakpoints are the point at which your site's content will respond to provide the user with the best possible layout to consume the information. A breakpoint separates the height or width of viewports (screens, printers, and other media output types) into steps. For instance, a width breakpoint of 40em creates two steps: one for widths up to 40em and one for widths above 40em. Breakpoints can be used to define when layouts should shift from one form to another, when images should be resized, and other changes that need to respond to changes in viewport height or width.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 8
|
||||
yield t("What are media queries?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 9
|
||||
yield t("Media queries are a formal way to encode breakpoints. For instance, a width breakpoint at 40em would be written as the media query \"(min-width: 40em)\". Breakpoints are really just media queries with some additional meta-data, such as a name and multiplier information.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 10
|
||||
yield t("What are resolution multipliers?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("Resolution multipliers are a measure of the viewport's device resolution, defined to be the ratio between the physical pixel size of the active device and the <a href=\"http://en.wikipedia.org/wiki/Device_independent_pixel\">device-independent pixel</a> size. The Breakpoint module defines multipliers of 1, 1.5, and 2; when defining breakpoints, modules and themes can define which multipliers apply to each breakpoint.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("What is a breakpoint group?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Breakpoints can be organized into groups. Modules and themes should use groups to separate out breakpoints that are meant to be used for different purposes, such as breakpoints for layouts or breakpoints for image sizing.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("Managing breakpoints and breakpoint groups overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 15
|
||||
yield t("The <em>Breakpoint</em> module allows you to define breakpoints and breakpoint groups in YAML files. Modules and themes can use the API provided by the <em>Breakpoint</em> module to define breakpoints and breakpoint groups, and to assign resolution multipliers to breakpoints.", []);
|
||||
// line 16
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/documentation/modules/breakpoint\">";
|
||||
// line 19
|
||||
yield t("Working with breakpoints in Drupal", []);
|
||||
yield "</a></li>
|
||||
<li><a href=\"https://www.w3.org/TR/css3-mediaqueries/\">";
|
||||
// line 20
|
||||
yield t("W3C standards for media queries", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/breakpoint.overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 95 => 20, 91 => 19, 86 => 17, 83 => 16, 81 => 15, 77 => 14, 73 => 13, 69 => 12, 65 => 11, 61 => 10, 57 => 9, 53 => 8, 49 => 7, 44 => 6,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/breakpoint.overview.html.twig", "/var/www/html/web/core/modules/breakpoint/help_topics/breakpoint.overview.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 6];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,171 @@
|
||||
<?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.creating_type.html.twig */
|
||||
class __TwigTemplate_360e13b60155d47b3f39002a9a86d065 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 10
|
||||
$context["comment_types_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 11
|
||||
yield " ";
|
||||
yield t("Comment types", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 13
|
||||
$context["comment_types_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["comment_types_link_text"] ?? null), "entity.comment_type.collection"));
|
||||
// line 14
|
||||
$context["comment_permissions_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 15
|
||||
yield " ";
|
||||
yield t("Administer comment types and settings", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 17
|
||||
$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 18
|
||||
$context["comment_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("comment.overview"));
|
||||
// line 19
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 20
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 21
|
||||
yield t("Create a new comment type. See @comment_overview_topic for information about comments and comment types.", ["@comment_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_overview_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 22
|
||||
yield t("Who can create a comment type?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 23
|
||||
yield t("Users with the <em>@comment_permissions_link</em> permission (typically administrators) can create comment types.", ["@comment_permissions_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_permissions_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 24
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>@comment_types_link</em>.", ["@comment_types_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_types_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("Click <em>Add comment type</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 28
|
||||
yield t("In the <em>Label</em> field, enter a name for the comment type, which is how it will be listed in the administrative interface.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 29
|
||||
yield t("In the <em>Target entity type</em> field, select the entity type to be commented on. See @content_structure_topic for more about content entities and fields.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 30
|
||||
yield t("Click <em>Save</em>. The comment type will be created.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 31
|
||||
yield t("Optionally, if you have the core Field UI module installed you can follow the steps in the related topics to add fields to the new comment type, set up the editing form, and configure the display.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/comment.creating_type.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 108 => 31, 104 => 30, 100 => 29, 96 => 28, 92 => 27, 88 => 26, 83 => 24, 79 => 23, 75 => 22, 71 => 21, 66 => 20, 64 => 19, 62 => 18, 60 => 17, 55 => 15, 53 => 14, 51 => 13, 46 => 11, 44 => 10,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/comment.creating_type.html.twig", "/var/www/html/web/core/modules/comment/help_topics/comment.creating_type.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 10, "trans" => 11];
|
||||
static $filters = ["escape" => 21];
|
||||
static $functions = ["render_var" => 13, "help_route_link" => 13, "help_topic_link" => 18];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,164 @@
|
||||
<?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.disabling.html.twig */
|
||||
class __TwigTemplate_5c47d3d82fb27ebde48955c88409aac9 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
|
||||
$context["comment_permissions_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 8
|
||||
yield t("Administer comments and comment settings", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["comment_permissions_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["comment_permissions_text"] ?? null), "user.admin_permissions.module", ["modules" => "comment"]));
|
||||
// line 11
|
||||
$context["comment_config_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("comment.configuring"));
|
||||
// line 12
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 13
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 14
|
||||
yield t("Turn off commenting for a particular entity (see @content_structure_topic for more about content entities and fields). Note that if you want to turn off commenting for all entities of an entity type or subtype, you will need to edit the field settings for the comment field; see @comment_config_topic for more about configuring the comment field.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), "@comment_config_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_config_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 15
|
||||
yield t("Who can disable comments?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 16
|
||||
yield t("You will need the <em>@comment_permissions_link</em> permission in order to disable commenting. You will also need permission to edit the entity that the comments are on.", ["@comment_permissions_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_permissions_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Find the entity you want to disable comments for, and edit it. For example, to turn off comments on a content item, you could find it by navigating in the <em>Manage</em> administrative menu to <em>Content</em>, filtering to find the content item, and clicking <em>Edit</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Under <em>Comment settings</em>, select the desired comment setting:", []);
|
||||
// line 21
|
||||
yield " <ul>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("<em>Open</em>: comments are allowed.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("<em>Closed</em>: past comments remain visible, but no new comments are allowed.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 24
|
||||
yield t("<em>Hidden</em>: past comments are hidden, and no new comments are allowed.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("Save the entity.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/comment.disabling.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 101 => 27, 95 => 24, 91 => 23, 87 => 22, 84 => 21, 82 => 20, 78 => 19, 73 => 17, 69 => 16, 65 => 15, 61 => 14, 56 => 13, 54 => 12, 52 => 11, 50 => 10, 46 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/comment.disabling.html.twig", "/var/www/html/web/core/modules/comment/help_topics/comment.disabling.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 8];
|
||||
static $filters = ["escape" => 14];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,178 @@
|
||||
<?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.moderating.html.twig */
|
||||
class __TwigTemplate_547213f654c934d228d6637532695b00 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 8
|
||||
$context["comment_unpublished_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 9
|
||||
yield " ";
|
||||
yield t("Unapproved comments", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 11
|
||||
$context["comment_unpublished_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["comment_unpublished_link_text"] ?? null), "comment.admin_approval"));
|
||||
// line 12
|
||||
$context["comment_published_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 13
|
||||
yield " ";
|
||||
yield t("Comments", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 15
|
||||
$context["comment_published_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["comment_published_link_text"] ?? null), "comment.admin"));
|
||||
// line 16
|
||||
$context["comment_permissions_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
// line 17
|
||||
yield " ";
|
||||
yield t("Administer comments and comment settings", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 19
|
||||
$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 20
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 21
|
||||
yield t("Decide which comments are shown on the website.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 22
|
||||
yield t("Who can moderate comments?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 23
|
||||
yield t("Users with the <em>@comment_permissions_link</em> permission (typically administrators) can moderate comments. You will also need the <em>Access the Content Overview page</em> permission from the Node module (if it is installed) to navigate to the comment management page.", ["@comment_permissions_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_permissions_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 24
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Content</em> > <em>@comment_published_link</em>. A list of all comments is shown.", ["@comment_published_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_published_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("To unpublish comments, select one or more comments by checking the boxes on the left side (right side in right-to-left languages). Then select <em>Unpublish comment</em> from the <em>Action</em> select list and click <em>Apply to selected items</em>. If you select the <em>Delete comment</em> action, you can instead delete the unwanted comments.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 28
|
||||
yield t("To change the content of a comment click <em>Edit</em> from the dropdown button for a particular comment.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 29
|
||||
yield t("To publish comments that are not yet visible on the website, navigate to the <em>@comment_unpublished_link</em> tab. Select one or more comments by checking the boxes on the left side (right side in right-to-left languages). Then select <em>Publish comment</em> from the <em>Action</em> select list and click <em>Apply to selected items</em>.", ["@comment_unpublished_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["comment_unpublished_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
</ol>
|
||||
<h2>";
|
||||
// line 31
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/docs/8/core/modules/comment/administering-and-approving-comments\">";
|
||||
// line 33
|
||||
yield t("Online documentation for moderating comments", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/comment.moderating.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 115 => 33, 110 => 31, 105 => 29, 101 => 28, 97 => 27, 93 => 26, 88 => 24, 84 => 23, 80 => 22, 76 => 21, 71 => 20, 69 => 19, 64 => 17, 62 => 16, 60 => 15, 55 => 13, 53 => 12, 51 => 11, 46 => 9, 44 => 8,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/comment.moderating.html.twig", "/var/www/html/web/core/modules/comment/help_topics/comment.moderating.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 8, "trans" => 9];
|
||||
static $filters = ["escape" => 23];
|
||||
static $functions = ["render_var" => 11, "help_route_link" => 11];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,161 @@
|
||||
<?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.overview.html.twig */
|
||||
class __TwigTemplate_047274d743c9443524f5b4c2d4b7360e 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 13
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 14
|
||||
$context["users_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("user.overview"));
|
||||
// line 15
|
||||
yield "<h2>";
|
||||
yield t("What is a comment?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 16
|
||||
yield t("A comment is a piece of content, typically posted by a website visitor, which provides discussion or commentary on other content like blog posts and news articles. Comments are a type of content entity, and can have fields that store text, HTML markup, and other data. Comments are attached to other content entities via Comment fields. See @content_structure_topic for more about content entities and fields.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("What is a comment type?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 18
|
||||
yield t("Comments are divided into <em>comment types</em>, which are the entity sub-types for the comment entity type. Each comment type has its own fields and its own form and display settings; each type can be used to comment on a single entity type. You can set up different comment types for different commenting purposes on your web site; for example, you might set up a comment type for recipes that has fields \"How did it taste?\" and \"Did the instructions work?\", and another comment type for blog entries that has only a generic comment body field.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 19
|
||||
yield t("What is moderation?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 20
|
||||
yield t("<em>Moderation</em> is a workflow where comments posted by some users on your site are verified before being published, to prevent spam and other bad behavior. The core software provides basic moderation functionality: you can configure permissions so that new comments posted by some user roles start as unpublished until a user with a different role reviews and publishes them. Contributed modules provide additional moderation and spam-reduction functionality, such as requiring untrusted users pass a CAPTCHA test before submitting comments and letting community members flag comments as possible spam. See @users_overview_topic for more about users, permissions, and roles.", ["@users_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["users_overview_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 21
|
||||
yield t("Overview of managing comments", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 22
|
||||
yield t("The core Comment module provides the following functionality:", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 24
|
||||
yield t("Posting comments", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 25
|
||||
yield t("Creating comment types; the core Field UI module allows you to attach fields to comment types and attach comment reference fields to other entities so that people can comment on them.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("Configuring commenting", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("Moderating comments as discussed above", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<p>";
|
||||
// line 29
|
||||
yield t("See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/comment.overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 99 => 29, 94 => 27, 90 => 26, 86 => 25, 82 => 24, 77 => 22, 73 => 21, 69 => 20, 65 => 19, 61 => 18, 57 => 17, 53 => 16, 48 => 15, 46 => 14, 44 => 13,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/comment.overview.html.twig", "/var/www/html/web/core/modules/comment/help_topics/comment.overview.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 13, "trans" => 15];
|
||||
static $filters = ["escape" => 16];
|
||||
static $functions = ["render_var" => 13, "help_topic_link" => 13];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', '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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,134 @@
|
||||
<?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/config.export_full.html.twig */
|
||||
class __TwigTemplate_bcb422f3f4cf30dce5b215f6110794df 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["export_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Export", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["export_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["export_link_text"] ?? null), "config.export_full"));
|
||||
// line 11
|
||||
$context["config_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.config_overview"));
|
||||
// line 12
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Create and download an archive containing all your site's configuration, exported as YAML files. See @config_overview_topic for more information about configuration.", ["@config_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["config_overview_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> > <em>Development</em> > <em>Configuration synchronization</em> > <em>@export_link</em>.", ["@export_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["export_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("Click <em>Export</em> and save the archive file.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/config.export_full.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 71 => 17, 67 => 16, 62 => 14, 58 => 13, 53 => 12, 51 => 11, 49 => 10, 44 => 9,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/config.export_full.html.twig", "/var/www/html/web/core/modules/config/help_topics/config.export_full.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 9, "trans" => 9];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,143 @@
|
||||
<?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/config.export_single.html.twig */
|
||||
class __TwigTemplate_64dea6eeb363d904390adc8daa2e7f81 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["single_export_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Single item", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["single_export_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["single_export_link_text"] ?? null), "config.export_single"));
|
||||
// line 11
|
||||
$context["config_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.config_overview"));
|
||||
// line 12
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Export a single configuration item to a file. See @config_overview_topic for more information about configuration.", ["@config_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["config_overview_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> > <em>Development</em> > <em>Configuration synchronization</em> > <em>Export</em> > <em>@single_export_link</em>.", ["@single_export_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["single_export_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("Select the <em>Configuration type</em> that you want to export, and then select the specific <em>Configuration name</em> to export.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Use your browser to copy the text in the box marked <em>Here is your configuration</em> to the clipboard.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Paste the copied text into a plain-text editor on your computer or other device, and save it using the suggested file name below the text box.", []);
|
||||
// line 20
|
||||
yield " </li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/config.export_single.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 81 => 20, 79 => 19, 75 => 18, 71 => 17, 67 => 16, 62 => 14, 58 => 13, 53 => 12, 51 => 11, 49 => 10, 44 => 9,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/config.export_single.html.twig", "/var/www/html/web/core/modules/config/help_topics/config.export_single.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 9, "trans" => 9];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,144 @@
|
||||
<?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/config.import_full.html.twig */
|
||||
class __TwigTemplate_307e659daf081054e5c18d3a5c7e0400 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["import_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Import", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["import_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["import_link_text"] ?? null), "config.import_full"));
|
||||
// line 11
|
||||
$context["export_full_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("config.export_full"));
|
||||
// line 12
|
||||
$context["config_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.config_overview"));
|
||||
// line 13
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 14
|
||||
yield t("Import the complete configuration of your site from an archive file, such as one that was previously exported (see @export_full_topic). See @config_overview_topic for more information about configuration.", ["@export_full_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["export_full_topic"] ?? null)), "@config_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["config_overview_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 15
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> > <em>Development</em> > <em>Configuration synchronization</em> > <em>@import_link</em>.", ["@import_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["import_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Browse to find the <em>Configuration archive</em> that you want to import.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Click <em>Upload</em>. Your configuration archive will be unpacked and placed in the configuration synchronization directory, and you will be redirected to the <em>Synchronize</em> page.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Review the differences between your uploaded configuration and the active configuration, if any, and click <em>Import all</em> to import the changes.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/config.import_full.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 81 => 20, 77 => 19, 73 => 18, 69 => 17, 64 => 15, 60 => 14, 55 => 13, 53 => 12, 51 => 11, 49 => 10, 44 => 9,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/config.import_full.html.twig", "/var/www/html/web/core/modules/config/help_topics/config.import_full.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 9, "trans" => 9];
|
||||
static $filters = ["escape" => 14];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,148 @@
|
||||
<?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/config.import_single.html.twig */
|
||||
class __TwigTemplate_b567229fa1ddfa58ceb16b873c1262b8 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["single_import_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Single item", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["single_import_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["single_import_link_text"] ?? null), "config.import_single"));
|
||||
// line 11
|
||||
$context["export_single_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("config.export_single"));
|
||||
// line 12
|
||||
$context["config_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.config_overview"));
|
||||
// line 13
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 14
|
||||
yield t("Import a single configuration item in YAML format, such as one that was previously exported (see @export_single_topic). See @config_overview_topic for more information about configuration.", ["@export_single_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["export_single_topic"] ?? null)), "@config_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["config_overview_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 15
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> > <em>Development</em> > <em>Configuration synchronization</em> > <em>Import</em> > <em>@single_import_link</em>.", ["@single_import_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["single_import_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Select the <em>Configuration type</em> that you want to import.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("On your computer or other device, copy the YAML-format configuration that you want to import to the clipboard.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Paste the clipboard text into the box labeled <em>Paste your configuration here</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Click <em>Import</em>.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/config.import_single.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 85 => 21, 81 => 20, 77 => 19, 73 => 18, 69 => 17, 64 => 15, 60 => 14, 55 => 13, 53 => 12, 51 => 11, 49 => 10, 44 => 9,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/config.import_single.html.twig", "/var/www/html/web/core/modules/config/help_topics/config.import_single.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 9, "trans" => 9];
|
||||
static $filters = ["escape" => 14];
|
||||
static $functions = ["render_var" => 10, "help_route_link" => 10, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,144 @@
|
||||
<?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/contact.adding_fields.html.twig */
|
||||
class __TwigTemplate_49704a5db1eebb0d12d0c89517bd8228 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 6
|
||||
$context["contact_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Contact forms", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 7
|
||||
$context["contact_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["contact_link_text"] ?? null), "entity.contact_form.collection"));
|
||||
// line 8
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 9
|
||||
yield t("Add, remove, or rearrange the fields on personal and site-wide contact forms.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 10
|
||||
yield t("What are the fields on contact forms?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("Both personal and site-wide contact forms will always have <em>Subject</em> and <em>Message</em> fields. You can add additional fields for users to fill out if desired. Note that if you want to display other content on a form page, such as text or images, you can use a content block.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>@contact_link</em>.", ["@contact_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["contact_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("Click <em>Manage fields</em> for the form you want to change the fields of, and add or remove one or more fields on the form.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Click <em>Manage form display</em> to change the order or configuration of the fields on the form.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/contact.adding_fields.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 81 => 16, 77 => 15, 73 => 14, 68 => 12, 64 => 11, 60 => 10, 56 => 9, 51 => 8, 49 => 7, 44 => 6,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/contact.adding_fields.html.twig", "/var/www/html/web/core/modules/contact/help_topics/contact.adding_fields.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 6, "trans" => 6];
|
||||
static $filters = ["escape" => 14];
|
||||
static $functions = ["render_var" => 7, "help_route_link" => 7];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,161 @@
|
||||
<?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/contact.configuring_personal.html.twig */
|
||||
class __TwigTemplate_0f289e54d92b9903eeeb4580b573f5d9 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
|
||||
$context["config_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Account settings", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 8
|
||||
$context["config_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["config_link_text"] ?? null), "entity.user.admin_form"));
|
||||
// line 9
|
||||
$context["permission_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Permissions", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 10
|
||||
$context["permission_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["permission_link_text"] ?? null), "user.admin_permissions"));
|
||||
// line 11
|
||||
$context["adding_fields_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("contact.adding_fields"));
|
||||
// line 12
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Configure personal contact forms for registered users on the website.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> > <em>People</em> > <em>@config_link</em>.", ["@config_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["config_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("In the <em>Contact settings</em> section, check/uncheck the box to enable/disable the contact form for new user accounts.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Click <em>Save configuration</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>People</em> > <em>@permission_link</em>.", ["@permission_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["permission_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Verify that permissions are correct for your site's roles, including the generic <em>Anonymous user</em> and <em>Authenticated user</em>. In order to use personal contact forms, users need both <em>View user information</em> (in the <em>User</em> section, which enables them to view user profiles) and <em>Use users' personal contact forms</em> (in the <em>Contact</em> section, which enables them to use contact forms if they can view user profiles).", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Click <em>Save permissions</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("The contact form will always have <em>Subject</em> and <em>Message</em> fields. If you want to add more fields, follow the steps in @adding_fields_topic.", ["@adding_fields_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["adding_fields_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/contact.configuring_personal.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 98 => 22, 94 => 21, 90 => 20, 86 => 19, 82 => 18, 78 => 17, 74 => 16, 69 => 14, 65 => 13, 60 => 12, 58 => 11, 56 => 10, 51 => 9, 49 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/contact.configuring_personal.html.twig", "/var/www/html/web/core/modules/contact/help_topics/contact.configuring_personal.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 7];
|
||||
static $filters = ["escape" => 16];
|
||||
static $functions = ["render_var" => 8, "help_route_link" => 8, "help_topic_link" => 11];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,146 @@
|
||||
<?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/contact.creating.html.twig */
|
||||
class __TwigTemplate_14a19beb1ac6f603db388329cae71b43 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 8
|
||||
$context["contact_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Contact forms", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 9
|
||||
$context["contact_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["contact_link_text"] ?? null), "entity.contact_form.collection"));
|
||||
// line 10
|
||||
$context["adding_fields_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("contact.adding_fields"));
|
||||
// line 11
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 12
|
||||
yield t("Create a new site-wide contact form.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 13
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>@contact_link</em>.", ["@contact_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["contact_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Click <em>Add contact form</em>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("Fill in the <em>Label</em> (title) for the form, <em>Recipients</em>, and optionally the other settings.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Click <em>Save</em>. You should see your new contact form in the table, along with a link to view it.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("The contact form will always have <em>Subject</em> and <em>Message</em> fields. If you want to add more fields, follow the steps in @adding_fields_topic.", ["@adding_fields_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["adding_fields_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/contact.creating.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 83 => 19, 79 => 18, 75 => 17, 71 => 16, 67 => 15, 62 => 13, 58 => 12, 53 => 11, 51 => 10, 49 => 9, 44 => 8,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/contact.creating.html.twig", "/var/www/html/web/core/modules/contact/help_topics/contact.creating.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 8, "trans" => 8];
|
||||
static $filters = ["escape" => 15];
|
||||
static $functions = ["render_var" => 9, "help_route_link" => 9, "help_topic_link" => 10];
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,127 @@
|
||||
<?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/contact.overview.html.twig */
|
||||
class __TwigTemplate_769f6fd6e24d8e5b8672852b78d4a068 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 5
|
||||
yield "<h2>";
|
||||
yield t("What are contact forms?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 6
|
||||
yield t("There are two different types of contact forms provided by the core Contact module: personal contact forms, which allow users to contact other users on the site, and site-wide contact forms, which allow users to contact site managers or administrators. A site can have more than one site-wide contact form; each has its own fields to fill out, recipients, and URL; you can also change the fields that are shown on personal contact forms.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 7
|
||||
yield t("Using the personal contact form", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("Site visitors can email registered users on your site by using the personal contact form, without knowing or learning the email address of the recipient. When a user with the correct permissions is viewing another user's profile, the viewer will see a <em>Contact</em> tab or link, which leads to the personal contact form if the user whose profile is being viewed has their personal contact form enabled (this is a user account setting).", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("Contact form management tasks", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("See the related topics below for specific tasks.", []);
|
||||
yield "</p>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/contact.overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 65 => 10, 61 => 9, 57 => 8, 53 => 7, 49 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/contact.overview.html.twig", "/var/www/html/web/core/modules/contact/help_topics/contact.overview.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 5];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,143 @@
|
||||
<?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/contact.setting_default.html.twig */
|
||||
class __TwigTemplate_5da527b8f80e3fecd9c951767106bd20 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 6
|
||||
$context["contact_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Contact forms", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 7
|
||||
$context["contact_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["contact_link_text"] ?? null), "entity.contact_form.collection"));
|
||||
// line 8
|
||||
$context["contact_page_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("the form displayed on the default contact page", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 9
|
||||
$context["contact_page_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["contact_page_link_text"] ?? null), "contact.site_page"));
|
||||
// line 10
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("Set a site-wide contact form to be the default contact form (@contact_page_link; for example, <em>/contact</em>).", ["@contact_page_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["contact_page_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("In the <em>Manage</em> administrative menu, navigate to <em>Structure</em> > <em>@contact_link</em>.", ["@contact_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["contact_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("Click <em>Edit</em> for the site-wide form you want to be the default.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Check <em>Make this the default form</em> and click <em>Save</em>.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/contact.setting_default.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 80 => 16, 76 => 15, 72 => 14, 67 => 12, 63 => 11, 58 => 10, 56 => 9, 51 => 8, 49 => 7, 44 => 6,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/contact.setting_default.html.twig", "/var/www/html/web/core/modules/contact/help_topics/contact.setting_default.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 6, "trans" => 6];
|
||||
static $filters = ["escape" => 11];
|
||||
static $functions = ["render_var" => 7, "help_route_link" => 7];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,115 @@
|
||||
<?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/modules/system/templates/container.html.twig */
|
||||
class __TwigTemplate_2807e5a06d946947f7136670ab10d759 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 25
|
||||
$context["classes"] = [(((($tmp = // line 26
|
||||
($context["has_parent"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("js-form-wrapper") : ("")), (((($tmp = // line 27
|
||||
($context["has_parent"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("form-wrapper") : (""))];
|
||||
// line 30
|
||||
yield "<div";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["attributes"] ?? null), "addClass", [($context["classes"] ?? null)], "method", false, false, true, 30), "html", null, true);
|
||||
yield ">";
|
||||
yield $this->extensions['Drupal\Core\Template\TwigExtension']->escapeFilter($this->env, ($context["children"] ?? null), "html", null, true);
|
||||
yield "</div>
|
||||
";
|
||||
$this->env->getExtension('\Drupal\Core\Template\TwigExtension')
|
||||
->checkDeprecations($context, ["has_parent", "attributes", "children"]); yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "core/modules/system/templates/container.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 48 => 30, 46 => 27, 45 => 26, 44 => 25,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "core/modules/system/templates/container.html.twig", "/var/www/html/web/core/modules/system/templates/container.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 25];
|
||||
static $filters = ["escape" => 30];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set'],
|
||||
['escape'],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,149 @@
|
||||
<?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/contextual.overview.html.twig */
|
||||
class __TwigTemplate_ada90af7080c91e66e0b3d34eb98dc4a 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("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("Use contextual links to access administrative tasks without navigating the administrative menu.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("What are contextual links?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("<em>Contextual links</em> give users with the <em>Use contextual links</em> permission quick access to administrative tasks related to areas of non-administrative pages. For example, if a page on your site displays a block, the block would have a contextual link that would allow users with permission to configure the block. If the block contains a menu or a view, it would also have a contextual link for editing the menu links or the view. Clicking a contextual link takes you to the related administrative page directly, without needing to navigate through the administrative menu system.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("Make sure that the core Contextual Links module is installed, and that you have a role with the <em>Use contextual links</em> permission. Optionally, make sure that a toolbar module is installed (either the core Toolbar module or a contributed module replacement).", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("Visit a non-administrative page on your site, such as the home page.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("Locate a block or another area on the page that you want to edit or configure.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Make the contextual links button visible by hovering your mouse over that area in the page. In most themes, this button looks like a pencil and is placed in the upper right corner of the page area (upper left for right-to-left languages), and hovering will also temporarily outline the affected area. Alternatively, click the contextual links toggle button on the right end of the toolbar (left end for right-to-left languages), which will make all contextual link buttons on the page visible until it is clicked again.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("While the contextual links button for the area of interest is visible, click the button to display the list of links for that area. Click a link in the list to visit the corresponding administrative page.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Complete your administrative task and save your settings, or cancel the action. You should be returned to the page you started from.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/contextual.overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 86 => 18, 82 => 17, 78 => 16, 74 => 15, 70 => 14, 66 => 13, 61 => 11, 57 => 10, 53 => 9, 49 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/contextual.overview.html.twig", "/var/www/html/web/core/modules/contextual/help_topics/contextual.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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,151 @@
|
||||
<?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/core.appearance.html.twig */
|
||||
class __TwigTemplate_334a3d433affeaa760cea729aea688e9 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
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 8
|
||||
yield "<h2>";
|
||||
yield t("What is a theme?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 9
|
||||
yield t("A <em>theme</em> is a set of files that define the visual look and feel of your site. The core software and modules that run on your site determine which content (including HTML text and other data stored in the database, uploaded images, and any other asset files) is displayed on the pages of your site. The theme determines the HTML markup and CSS styling that wraps the content. Several basic themes are supplied with the core software; additional <em>contributed themes</em> can be downloaded separately from the <a href=\"https://www.drupal.org/project/project_theme\">Download & Extend page on drupal.org</a>, or you can create your own theme.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 10
|
||||
yield t("What is a base theme?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("A base theme is a theme that is not meant to be used directly on a site, but instead acts as a scaffolding for building other themes. The core Stable 9 theme is one example; other base themes can be downloaded from the <a href=\"https://www.drupal.org/project/project_theme\">Download & Extend page on drupal.org</a>.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("What is a layout?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("A <em>layout</em> is a template that defines where blocks and other pieces of content should be displayed. The core Layout Discovery module allows modules and themes to register layouts, and the core Layout Builder module provides a visual interface for placing fields and blocks in layouts for entity sub-types and individual entity items (see @content_structure_topic for more on entities and fields).", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("Changing site appearance overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 15
|
||||
yield t("The main way to change the overall appearance of your site is to switch the default theme. The core Layout Builder and Layout Discovery modules allow you to define layouts for your site's content, and the core Breakpoint module helps themes change appearance for different-sized devices. See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 16
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/docs/user_guide/en/extend-chapter.html\">";
|
||||
// line 18
|
||||
yield t("Extending and Customizing Your Site (Drupal User Guide)", []);
|
||||
yield "</a></li>
|
||||
<li><a href=\"https://www.drupal.org/docs/develop/theming-drupal\">";
|
||||
// line 19
|
||||
yield t("Theming Drupal", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.appearance.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 88 => 19, 84 => 18, 79 => 16, 75 => 15, 71 => 14, 67 => 13, 63 => 12, 59 => 11, 55 => 10, 51 => 9, 46 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.appearance.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.appearance.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 8];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 7, "help_topic_link" => 7];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', '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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,243 @@
|
||||
<?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/core.config_overview.html.twig */
|
||||
class __TwigTemplate_7bb62bd248b91a4818b9415d67a40d06 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 10
|
||||
yield "<h2>";
|
||||
yield t("What is the configuration system?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("The configuration system provides the ability for administrators to customize the site, and to move and synchronize configuration changes between development sites and the live site. It does this in 2 ways:", []);
|
||||
yield "</p>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("Providing storage for configuration", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("Providing a process in which configuration changes can be imported and exported between instances of the same site; for example, from \"dev\" to \"staging\" to \"live\"", []);
|
||||
yield "</li>
|
||||
</ol>
|
||||
<h2>";
|
||||
// line 16
|
||||
yield t("What is configuration data?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 17
|
||||
yield t("Configuration data describes settings that define how your site behaves or is displayed. For example, when a site administrator updates settings using an administrative form, these settings are stored as configuration data. Configuration data describes settings as simple as a site name and as complex as a view or image style.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 18
|
||||
yield t("What kinds of configuration are there?", []);
|
||||
yield "</h2>
|
||||
<dl>
|
||||
<dt>";
|
||||
// line 20
|
||||
yield t("Active configuration", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 21
|
||||
yield t("Active configuration is the current working configuration of a site. Storage of active configuration is defined by the site, and resides in the database by default.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 22
|
||||
yield t("Simple configuration", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 23
|
||||
yield t("A simple configuration item is a group of settings, such as the settings for a module or theme. Each simple configuration item has its own unique structure.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 24
|
||||
yield t("Configuration entities", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 25
|
||||
yield t("Configuration entities are user-defined configuration items grouped by type, such as views, image styles, and content types. Each configuration entity within a type has a similar structure.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 26
|
||||
yield t("Default configuration", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 27
|
||||
yield t("Default configuration can be defined by a module, theme, or installation profile in its <em>config/install</em> or <em>config/optional</em> directories. Configuration is provided in YAML files (file extension .yml); YAML is a human-readable data serialization standard that is used by the core software for several purposes. Once the default configuration has been imported into the site's active configuration (through installing the extension), that configuration is owned by the site, not the extension. This means that future updates of the extension will not override the site's active configuration for that extension.", []);
|
||||
yield "</dd>
|
||||
</dl>
|
||||
<h2>";
|
||||
// line 29
|
||||
yield t("What is configuration synchronization?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 30
|
||||
yield t("Configuration synchronization is the process of exporting and importing configuration to keep configuration synchronized between different versions of a site; for example, between a development site and the live site.", []);
|
||||
yield "</p>
|
||||
<p>";
|
||||
// line 31
|
||||
yield t("Each site has unique identifier, also called a <em>UUID</em>, which identifies the site to the system in any instance of the site, as long as the site instances have been reproduced as clones (cloning is when the codebase and database are copied to create a new site instance). When site instances are cloned, a \"dev\" instance of the site has the same UUID as the \"live\" instance. When site instances share the same UUID, configuration can be exported from one instance to another.", []);
|
||||
yield "</p>
|
||||
<p>";
|
||||
// line 32
|
||||
yield t("The following list contains terms and concepts related to configuration synchronization:", []);
|
||||
yield "</p>
|
||||
<dl>
|
||||
<dt>";
|
||||
// line 34
|
||||
yield t("Exported configuration", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 35
|
||||
yield t("When configuration is exported, the active configuration is exported as a set of files in YAML format. When using the <em>Configuration synchronization</em> administrative UI, configuration can be exported as a full-export or single-item archive. This archive can then be imported into the destination site instance.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 36
|
||||
yield t("Imported configuration", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 37
|
||||
yield t("Imported configuration is configuration that has been exported from another instance of the site (the \"source\") and is now being imported into another site instance (the \"destination\"), thereby updating its active configuration to match the imported configuration data set.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 38
|
||||
yield t("Configuration sync directory", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 39
|
||||
yield t("The configuration sync directory location is set in the site's <em>settings.php</em> file. When configuration is exported, the active configuration is exported and described in YAML files which are stored in the configuration sync directory. After the first export, the system compares the site's active configuration with the configuration data in the sync directory and will only export active configuration items that are different than their counterparts in the sync directory.", []);
|
||||
yield "</dd>
|
||||
</dl>
|
||||
<h2>";
|
||||
// line 41
|
||||
yield t("Managing configuration overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 42
|
||||
yield t("Configuration management tasks, such as exporting or importing configuration and synchronizing configuration, can be done either through the administrative UI provided by the core Configuration Manager module or a command-line interface (CLI) tool. Defining a configuration sync directory path other than the default value requires read/write access to the site's <em>settings.php</em> file.", []);
|
||||
yield "</p>
|
||||
<p>";
|
||||
// line 43
|
||||
yield t("Most modules and themes also provide settings forms for updating the configuration they provide. See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 44
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 46
|
||||
yield t("<a href=\"https://www.drupal.org/docs/configuration-management/workflow-using-drush\">Configuration Management: Workflow using Drush</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 47
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/understanding-data.html\">Concept: Types of Data (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 48
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/install-dev-sites.html\">Concept: Development Sites (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 49
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/install-dev-making.html\">Making a Development Site (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.config_overview.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 180 => 49, 176 => 48, 172 => 47, 168 => 46, 163 => 44, 159 => 43, 155 => 42, 151 => 41, 146 => 39, 142 => 38, 138 => 37, 134 => 36, 130 => 35, 126 => 34, 121 => 32, 117 => 31, 113 => 30, 109 => 29, 104 => 27, 100 => 26, 96 => 25, 92 => 24, 88 => 23, 84 => 22, 80 => 21, 76 => 20, 71 => 18, 67 => 17, 63 => 16, 58 => 14, 54 => 13, 49 => 11, 44 => 10,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.config_overview.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.config_overview.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 10];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,272 @@
|
||||
<?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/core.content_structure.html.twig */
|
||||
class __TwigTemplate_713fc2d5b88fc3a6a82f7c429eb3dc51 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 5
|
||||
$context["help_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Help", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 6
|
||||
$context["help_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["help_link_text"] ?? null), "help.main"));
|
||||
// line 7
|
||||
yield "<h2>";
|
||||
yield t("What types of data does a site have?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("There are four main types of data. <em>Content</em> is the information (text, images, etc.) meant to be displayed to website visitors. <em>Configuration</em> is data that defines how the content is displayed; some configuration (such as field labels) may also be visible to site visitors. <em>State</em> is temporary data about the state of your site, such as the last time the system <em>cron</em> jobs ran. <em>Session</em> is a subset of State information, related to users' interactions with the site, such as site cookies and whether or not they are logged in.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("What is a content entity?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("A <em>content entity</em> (or more commonly, <em>entity</em>) is an item of content data, which can consist of text, HTML markup, images, attached files, and other data. Content entities are grouped into <em>entity types</em>, which have different purposes and are displayed in very different ways on the site. Most entity types are also divided into <em>entity sub-types</em>, which are divisions within an entity type to allow for smaller variations in how the entities are used and displayed. For example, the <em>Content item</em> entity type that stores page-level content is divided into <em>content type</em> sub-types; the <em>Content block</em> entity type has <em>block types</em>; but the <em>User</em> entity type (for user profile information) does not have sub-types.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("What is a field?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 12
|
||||
yield t("Within entity items, the data is stored in individual <em>fields</em>, each of which holds one type of data, such as formatted or plain text, images or other files, or dates. Fields can be added by an administrator on entity sub-types, so that all entity items of a given entity sub-type have the same collection of fields available, and they can be single-valued or multiple-valued. When you create or edit entity items, you are specifying the values for the fields on the entity item.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 13
|
||||
yield t("What is a reference field?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 14
|
||||
yield t("A <em>reference field</em> is a field that stores a relationship between an entity and one or more other entities, which may belong to the same or different entity type. For example, a <em>Content reference</em> field on a content type stores a relationship between one content item and one or more other content items.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 15
|
||||
yield t("What field types are available?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 16
|
||||
yield t("The following field types are provided by the core system and core modules (many more are provided by contributed modules):", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Boolean, Number (provided by the core system): Stores true/false values and numbers", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 19
|
||||
yield t("Comment (provided by the core Comment module): Allows users to add comments to an entity", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("Date, Timestamp (Datetime module): Stores dates and times", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Date range (Datetime range module): Stores time/date periods with a start and an end", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("Email (core system): Stores email addresses", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("Link (Link module): Stores URLs and link text", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 24
|
||||
yield t("List (Options module): Stores values chosen from pre-defined lists, where the values can be numbers or text; see section below for more on list fields.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 25
|
||||
yield t("Reference (core system): Stores entity references; see section above", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("Telephone (Telephone module): Stores telephone numbers", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("Text (Text module): Stores formatted and unformatted text; see section below for more on text fields.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<h2>";
|
||||
// line 29
|
||||
yield t("What settings are available for List field types?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 30
|
||||
yield t("List fields associate pre-defined <em>keys</em> (or value codes) with <em>labels</em> that the user sees. For example, you might define a list field that shows the user the names of several locations, while behind the scenes a location code is stored in the database. Each list field type corresponds to one type of stored key. For example, a <em>List (integer)</em> field stores integers, while the <em>List (text)</em> field stores text strings. Once you have chosen the field type, the main setting for a list field is the <em>Allowed values</em> list, which associates the keys with the labels.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 31
|
||||
yield t("What types of Text fields are available?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 32
|
||||
yield t("There are several types of text fields, with different characteristics. Text fields can be either <em>plain</em> or <em>formatted</em>: plain text fields do not contain HTML, while formatted fields can contain HTML and are processed through <em>text filters</em> (these are provided by the core Filter module; if you have that module enabled, see the related topic below on filters for more information). Text fields can also be regular-length (with a limit of 255 characters) or <em>long</em> (with a very large character limit), and long formatted text fields can include a <em>summary</em> attribute. All possible combinations of these characteristics exist as text field types; for example, <em>Text (plain)</em> and <em>Text (formatted, long, with summary)</em> are two examples of text field types.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 33
|
||||
yield t("What is a formatter?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 34
|
||||
yield t("A <em>formatter</em> is a way to display a field; most field types offer several types of formatters, and most formatters have settings that further define how the field is displayed. It is also possible to completely hide a field from display, and you have the option of showing or hiding the field's label when it is displayed.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 35
|
||||
yield t("What is a widget?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 36
|
||||
yield t("A <em>widget</em> is a way to edit a field. Some field types, such as plain text single-line fields, have only one widget available (in this case, a single-line text input field). Other field types offer choices for the widget; for example, single-valued <em>List</em> fields can use a <em>Select</em> or <em>Radio button</em> widget for editing. Many widget types have settings that further define how the field can be edited.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 37
|
||||
yield t("Managing content structure overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 38
|
||||
yield t("Besides the field modules listed in the previous section, there are additional core modules that you can use to manage your content structure:", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 40
|
||||
yield t("The core Node, Comment, Content Block, Custom Menu Links, User, File, Image, Media, Taxonomy, and Contact modules all provide content entity types.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 41
|
||||
yield t("The core Field UI module provides a user interface for managing fields and their display on entities.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 42
|
||||
yield t("The core Layout Builder module provides a more flexible user interface for configuring the display of entities.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 43
|
||||
yield t("The core Filter, Responsive Image, and Path modules provide settings and display options for entities and fields.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<p>";
|
||||
// line 45
|
||||
yield t("Depending on the core and contributed modules that you currently have installed on your site, the related topics below and other topics listed on the main help page (see @help_link) will help you with tasks related to content structure.", ["@help_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["help_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 46
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 48
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/understanding-data.html\">Concept: Types of Data (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 49
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/planning-chapter.html\">Planning your Site (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 50
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/structure-reference-fields.html\">Concept: Reference Fields (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.content_structure.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 209 => 50, 205 => 49, 201 => 48, 196 => 46, 192 => 45, 187 => 43, 183 => 42, 179 => 41, 175 => 40, 170 => 38, 166 => 37, 162 => 36, 158 => 35, 154 => 34, 150 => 33, 146 => 32, 142 => 31, 138 => 30, 134 => 29, 129 => 27, 125 => 26, 121 => 25, 117 => 24, 113 => 23, 109 => 22, 105 => 21, 101 => 20, 97 => 19, 93 => 18, 88 => 16, 84 => 15, 80 => 14, 76 => 13, 72 => 12, 68 => 11, 64 => 10, 60 => 9, 56 => 8, 51 => 7, 49 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.content_structure.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.content_structure.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 5, "trans" => 5];
|
||||
static $filters = ["escape" => 45];
|
||||
static $functions = ["render_var" => 6, "help_route_link" => 6];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,180 @@
|
||||
<?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/core.cron.html.twig */
|
||||
class __TwigTemplate_f1a3e86113170dcb3ad07bbbf5cba4ff 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 6
|
||||
$context["cron_link_text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
|
||||
yield t("Cron", []);
|
||||
yield from [];
|
||||
})())) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 7
|
||||
$context["cron_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink(($context["cron_link_text"] ?? null), "system.cron_settings"));
|
||||
// line 8
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 9
|
||||
yield t("Configure your system so that cron will run automatically.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 10
|
||||
yield t("What are cron tasks?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("To ensure that your site and its modules continue to function well, a group of administrative operations should be run periodically. These operations are called <em>cron</em> tasks, and running the tasks is known as <em>running cron</em>. Depending on how often content is updated on your site, you might need to run cron on a schedule ranging from hourly to weekly to keep your site running well.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("What options are available for running cron?", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("If the core Automated Cron module is installed, your site will run cron periodically, on a schedule you can configure.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("You can set up a task on your web server to visit the <em> cron URL</em>, which is unique to your site, on a schedule.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("You can also run cron manually, but this is not the recommended way to make sure it is run periodically.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<h2>";
|
||||
// line 18
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 20
|
||||
yield t("In the <em>Manage</em> administration menu, navigate to <em>Configuration</em> > <em>System</em> > <em>@cron_link</em>. Note the <em>Last run</em> time on the page.", ["@cron_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["cron_link"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("If you want to run cron right now, click <em>Run cron</em> and wait for cron to finish.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("If you have a way to configure tasks on your web server, copy the link where it says <em>To run cron from outside the site, go to</em>. Set up a task to visit that URL on your desired cron schedule, such as once an hour or once a week. (On Linux-like servers, you can use the <em>wget</em> command to visit a URL.) If you configure an outside task, you should uninstall the Automated Cron module.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("If you are not configuring an outside task, and you have the core Automated Cron module installed, select a schedule for automated cron runs in <em>Cron settings</em> > <em>Run cron every</em>. Click <em>Save configuration</em>.", []);
|
||||
yield "</li>
|
||||
</ol>
|
||||
<h2>";
|
||||
// line 25
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/security-cron-concept.html\">Concept: Cron (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 28
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/security-cron.html\">Configuring Cron Maintenance Tasks (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.cron.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 117 => 28, 113 => 27, 108 => 25, 103 => 23, 99 => 22, 95 => 21, 91 => 20, 86 => 18, 81 => 16, 77 => 15, 73 => 14, 68 => 12, 64 => 11, 60 => 10, 56 => 9, 51 => 8, 49 => 7, 44 => 6,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.cron.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.cron.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 6, "trans" => 6];
|
||||
static $filters = ["escape" => 20];
|
||||
static $functions = ["render_var" => 7, "help_route_link" => 7];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,149 @@
|
||||
<?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/core.extending.html.twig */
|
||||
class __TwigTemplate_09e2a6197e945ca9cb9e8675d1e07e0b 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 5
|
||||
yield "<h2>";
|
||||
yield t("What is a module?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 6
|
||||
yield t("A <em>module</em> is a set of PHP, JavaScript, and/or CSS files that extends site features and adds functionality. A set of <em>Core modules</em> is distributed as part of the core software download. Additional <em>Contributed modules</em> can be downloaded separately from the <a href=\"https://www.drupal.org/project/project_module\">Download & Extend page on drupal.org</a>.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 7
|
||||
yield t("What is an Experimental module?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("An <em>Experimental</em> module is a module that is still in development and is not yet stable. Using Experimental modules on production sites is not recommended.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("What are installing and uninstalling?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("Installing a core or downloaded contributed module means turning it on, so that you can use its features and functionality. Uninstalling means turning it off and removing all of its configuration. A module cannot be uninstalled if another installed module depends on it, or if you have created content on your site using the module -- you would need to delete the content and uninstall dependent modules first.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("Extending overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 12
|
||||
yield t("See the related topics listed below for help performing tasks related to extending the functionality of your site.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 13
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/understanding-modules.html\">Concept: Modules (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/extend-chapter.html\">Extending and Customizing Your Site (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.extending.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 86 => 16, 82 => 15, 77 => 13, 73 => 12, 69 => 11, 65 => 10, 61 => 9, 57 => 8, 53 => 7, 49 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.extending.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.extending.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 5];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,143 @@
|
||||
<?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/core.maintenance.html.twig */
|
||||
class __TwigTemplate_e5605e2045818584dd62e2e9f15c8695 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 12
|
||||
yield "<h2>";
|
||||
yield t("Maintaining and troubleshooting overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Here are some tasks and hints related to maintaining your site, and troubleshooting problems that may come up on your site. See the related topics below for more information.", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("When performing maintenance, such as installing, uninstalling, or updating a module, put your site in maintenance mode.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Configure your site so that cron runs periodically.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("If your site is not behaving as expected, clear the cache before trying to diagnose the problem.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("There are several site reports that can help you diagnose problems with your site. There are also two core modules that can be used for error logging: Database Logging and Syslog.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<h2>";
|
||||
// line 20
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/prevent-chapter.html\">Preventing and Fixing Problems (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/security-chapter.html\">Security and Maintenance (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.maintenance.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 80 => 23, 76 => 22, 71 => 20, 66 => 18, 62 => 17, 58 => 16, 54 => 15, 49 => 13, 44 => 12,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.maintenance.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.maintenance.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 12];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,169 @@
|
||||
<?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/core.media.html.twig */
|
||||
class __TwigTemplate_b61e3d959b3b1338985b48d998e54122 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 11
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 12
|
||||
yield "<h2>";
|
||||
yield t("What are media items?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("Core media items include audio, images, documents, and videos. You can add other media types, such as social media posts, through the use of contributed modules. Media items may be files located in your site's file system, or remote items referenced by a URL. Media items are content entities, and they are divided into media types (which are entity sub-types); media types can have fields. See @content_structure_topic for more information on content entities and fields.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("What is the media library?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 15
|
||||
yield t("The media library is a visual user interface for managing and reusing media items. Add media items to content using Media reference fields and the Media library field widget.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 16
|
||||
yield t("What is an image style?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 17
|
||||
yield t("An image style is a set of processing steps, known as <em>effects</em>, that can be applied to images. Examples of effects include scaling and cropping images to different sizes. Responsive image styles can associate image styles with your theme's size breakpoints. This allows serving images sized for the browser width.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 18
|
||||
yield t("Overview of managing media", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 19
|
||||
yield t("The following modules provide media-related functionality:", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 21
|
||||
yield t("Media items and media types are managed by the core Media module.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 22
|
||||
yield t("The core Media module provides a Media reference field to add media to content entities. The core File and Image modules also provide reference fields. It is recommended to use the Media reference field because it is more versatile.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("The core Media Library module provides the media library and the Media library field widget. With this module installed, the Media library field widget becomes the default widget for editing Media reference fields.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 24
|
||||
yield t("The core Image module provides a user interface for defining image styles. The core Responsive Image module provides responsive image styles. Using the core Breakpoint module, and a breakpoint-enabled theme, these responsive styles can serve images sized for the browser.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<p>";
|
||||
// line 26
|
||||
yield t("See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 27
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 29
|
||||
yield t("<a href=\"https://www.drupal.org/docs/8/core/modules/media\">Media module</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.media.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 106 => 29, 101 => 27, 97 => 26, 92 => 24, 88 => 23, 84 => 22, 80 => 21, 75 => 19, 71 => 18, 67 => 17, 63 => 16, 59 => 15, 55 => 14, 51 => 13, 46 => 12, 44 => 11,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.media.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.media.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 11, "trans" => 12];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 11, "help_topic_link" => 11];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', '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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,129 @@
|
||||
<?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/core.menus.html.twig */
|
||||
class __TwigTemplate_e41f1149a606c2f19516513430f35059 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 is a menu?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("A menu is a collection of <em>menu links</em> used to navigate a web site. Menus and menu links can be provided by modules or site administrators.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("Managing menus overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("The core Menu UI module provides a user interface for managing menus, including creating new menus, reordering menu links, and disabling links provided by modules. It also provides the ability for links to content items to be added to menus while editing, if configured on the content type. The core Custom Menu Links module provides the ability to add custom links to menus. Each menu can be displayed by placing a block in a theme region; some themes also can display a menu outside of the block system. See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("Additional Resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/menu-concept.html\">Concept: Menu (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.menus.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 66 => 13, 61 => 11, 57 => 10, 53 => 9, 49 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.menus.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.menus.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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,188 @@
|
||||
<?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/core.performance.html.twig */
|
||||
class __TwigTemplate_a2f757fc391bc0702e637cfe9c99c5e4 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 5
|
||||
yield "<h2>";
|
||||
yield t("What is site performance?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 6
|
||||
yield t("Site performance, in this context, refers to speed factors such as the page load time and the response time after a user action on a page.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 7
|
||||
yield t("What is caching?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("Caching is saving already-rendered HTML output and other calculated data for later use the first time it is needed. This saves time, because the next time the same data is needed it can be quickly retrieved instead of recalculated. Automatic caching systems also include mechanisms to delete cached calculations or mark them as no longer valid when the underlying data changes. To facilitate that, cached data has a <em>lifetime</em>, which is the maximum time before the data will be deleted from the cache (forcing recalculation).", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("What is file aggregation?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("Aggregation is when CSS and JavaScript files are merged together and compressed into a format that is much smaller than the original. This allows for faster transmission and faster rendering on the other end.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("What can I do to improve my site's performance?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 12
|
||||
yield t("The following core software modules and mechanisms can improve your site's performance:", []);
|
||||
yield "</p>
|
||||
<dl>
|
||||
<dt>";
|
||||
// line 14
|
||||
yield t("Internal Page Cache module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 15
|
||||
yield t("Caches pages requested by users who are not logged in (anonymous users). Do not use if your site needs to send different output to different anonymous users.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 16
|
||||
yield t("Internal Dynamic Page Cache module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 17
|
||||
yield t("Caches data for both authenticated and anonymous users, with non-cacheable data in the page converted to placeholders and calculated when the page is requested.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 18
|
||||
yield t("Big Pipe module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 19
|
||||
yield t("Changes the way pages are sent to users, so that cacheable parts are sent out first with placeholders, and the uncacheable or personalized parts of the page are streamed afterwards. This allows the browser to render the bulk of the page quickly and fill in the details later.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 20
|
||||
yield t("Performance page settings", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 21
|
||||
yield t("In the <em>Manage</em> administrative menu, if you navigate to <em>Configuration</em> > <em>Development</em> > <em>Performance</em>, you will find a setting for the maximum cache lifetime, as well as the ability to turn on CSS and JavaScript file aggregation.", []);
|
||||
yield "</dd>
|
||||
</dl>
|
||||
|
||||
<h2>";
|
||||
// line 24
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/documentation/modules/internal_page_cache\">";
|
||||
// line 26
|
||||
yield t("Online documentation for the Internal Page Cache module", []);
|
||||
yield "</a></li>
|
||||
<li><a href=\"https://www.drupal.org/documentation/modules/dynamic_page_cache\">";
|
||||
// line 27
|
||||
yield t("Online documentation for the Internal Dynamic Page Cache module", []);
|
||||
yield "</a></li>
|
||||
<li><a href=\"https://www.drupal.org/documentation/modules/big_pipe\">";
|
||||
// line 28
|
||||
yield t("Online documentation for the BigPipe module", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.performance.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 125 => 28, 121 => 27, 117 => 26, 112 => 24, 106 => 21, 102 => 20, 98 => 19, 94 => 18, 90 => 17, 86 => 16, 82 => 15, 78 => 14, 73 => 12, 69 => 11, 65 => 10, 61 => 9, 57 => 8, 53 => 7, 49 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.performance.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.performance.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 5];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,141 @@
|
||||
<?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/core.security.html.twig */
|
||||
class __TwigTemplate_2a4550dca98aaee2e8ef40bfc1cff4b6 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 5
|
||||
yield "<h2>";
|
||||
yield t("What are security updates?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 6
|
||||
yield t("Any software occasionally has bugs, and sometimes these bugs have security implications. When security bugs are fixed in the core software, modules, or themes that your site uses, they are released in a <em>security update</em>. You will need to apply security updates in order to keep your site secure.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 7
|
||||
yield t("What are security advisories?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 8
|
||||
yield t("A security advisory is a public announcement about a reported security problem in the core software. Contributed projects with a shield icon and \"Stable releases for this project are covered by the security advisory policy\" on their project page are also covered by Drupal's security advisory policy. Security advisories are managed by the <a href=\"https://www.drupal.org/drupal-security-team\">Drupal Security Team</a>.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 9
|
||||
yield t("Security tasks", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 10
|
||||
yield t("Keeping track of updates, updating the core software, and updating contributed modules and/or themes are all part of keeping your site secure. See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 11
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("<a href=\"https://www.drupal.org/docs/user_guide/en/security-chapter.html\">Security and Maintenance (Drupal User Guide)</a>", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("<a href=\"https://www.drupal.org/drupal-security-team/security-advisory-process-and-permissions-policy\">Security advisory process and permissions policy</a>", []);
|
||||
yield "</li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.security.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 78 => 14, 74 => 13, 69 => 11, 65 => 10, 61 => 9, 57 => 8, 53 => 7, 49 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.security.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.security.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 5];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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/core.settings_tray.html.twig */
|
||||
class __TwigTemplate_20e367af5c1df224ad6221e45332f219 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 6
|
||||
yield "<h2>";
|
||||
yield t("Goal", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 7
|
||||
yield t("Edit settings in place.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 8
|
||||
yield t("What is quick editing?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 9
|
||||
yield t("The core Settings Tray module provides the ability to quickly edit settings inline. It requires the core Contextual Links module in order to expose the links that let you edit in place.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 10
|
||||
yield t("Who can edit settings in place?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("In order to follow these steps to edit settings in place, the core Settings Tray module must be installed. Also, either the core Toolbar module or a contributed replacement must be installed. You will need to have <em>Use contextual links</em> permission, as well as permission to edit the particular content or settings.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("Steps", []);
|
||||
yield "</h2>
|
||||
<ol>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("Find and visit a page on your site that has the settings that you would like to edit.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("Click the contextual links <em>Edit</em> button on the toolbar (in most themes, it looks like a pencil). Contextual <em>Edit</em> links with the same icon will appear all over your page.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("Find the contextual link for the part of the page you want to edit. For example, if you want to edit the settings for a block, the link should be in the top-right corner of the block, or top-left for right-to-left languages.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("Click the link to open the contextual links menu, and click <em>Quick edit</em>. An editing form for the settings should appear on the page.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("Make your edits and submit the form.", []);
|
||||
yield "</li>
|
||||
</ol>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.settings_tray.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 90 => 18, 86 => 17, 82 => 16, 78 => 15, 74 => 14, 69 => 12, 65 => 11, 61 => 10, 57 => 9, 53 => 8, 49 => 7, 44 => 6,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.settings_tray.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.settings_tray.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 6];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,115 @@
|
||||
<?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/core.tracking_content.html.twig */
|
||||
class __TwigTemplate_b907afd2ed5eb351ec6233766a544d48 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 5
|
||||
yield "<h2>";
|
||||
yield t("Tracking overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 6
|
||||
yield t("The core History module tracks how recently users have viewed content items, and provides a Views field and filter that can be used to show users content that they haven't yet seen.", []);
|
||||
yield "</p>
|
||||
<p>";
|
||||
// line 7
|
||||
yield t("If you have one or more tracking modules installed on your site, see the related topics listed below for specific tasks.", []);
|
||||
yield "</p>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.tracking_content.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 53 => 7, 49 => 6, 44 => 5,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.tracking_content.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.tracking_content.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 5];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,137 @@
|
||||
<?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/core.translations.html.twig */
|
||||
class __TwigTemplate_a4d7eefd79b745332321750e5a63441a 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 8
|
||||
$context["config_overview_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.config_overview"));
|
||||
// line 9
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 10
|
||||
yield "<h2>";
|
||||
yield t("What text can be translated in your site?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("There are three types of text that can be translated:", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("Content (blocks, content items, etc.) can be written in English or another language, and can be translated into additional languages. See @content_structure_topic to learn more about content.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("Many configuration items also include text that can be translated. Default configuration provided by your site's software is provided in English; you can also download community-provided translations. See @config_overview_topic to learn more about configuration.", ["@config_overview_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["config_overview_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("User interface text that is provided by the core software, your install profile, themes, and modules is provided in English, but can be translated into other languages. You can also download translations that community-members have provided.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<h2>";
|
||||
// line 17
|
||||
yield t("Working with languages overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 18
|
||||
yield t("The core Language module lets you add new languages to your site, provides the <em>Language switcher</em> block, and provides the ability to configure block visibility by language; the block and block visibility settings are only available if you have multiple languages configured. The core Content Translation, Configuration Translation, and Interface Translation modules let you translate content, configuration, and the built-in user interface, respectively. The core Locale module manages automatic downloads of community-provided translations of default configuration and user-interface text if the core Update Status module is installed. See the related topics listed below for specific tasks.", []);
|
||||
yield "</p>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.translations.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 75 => 18, 71 => 17, 66 => 15, 62 => 14, 58 => 13, 53 => 11, 48 => 10, 46 => 9, 44 => 8,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.translations.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.translations.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 8, "trans" => 10];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 8, "help_topic_link" => 8];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', '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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,129 @@
|
||||
<?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/core.ui_accessibility.html.twig */
|
||||
class __TwigTemplate_8b8cba06bdc0ce2000967f46999e52b5 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 6
|
||||
yield "<h2>";
|
||||
yield t("Overview of accessibility", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 7
|
||||
yield t("The core administrative interface has built-in compliance with many accessibility standards so that most pages are accessible to most users in their default state. However, certain pages become more accessible to some users through the use of a non-default or improved interface. These interfaces include:", []);
|
||||
yield "</p>
|
||||
<dl>
|
||||
<dt>";
|
||||
// line 9
|
||||
yield t("Disabling drag-and-drop functionality", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 10
|
||||
yield t("The default drag-and-drop user interface for ordering tables in the administrative interface presents a challenge for some users, including keyboard-only users and users of screen readers and other assistive technology. The drag-and-drop interface can be disabled in a table by clicking a link labeled <em>Show row weights</em> above the table. The replacement interface allows users to order the table by choosing numerical weights (with increasing numbers) instead of dragging table rows.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 11
|
||||
yield t("Enabling inline form errors", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 12
|
||||
yield t("Errors that occur when you submit a form, such as not filling in a required field, are sometimes difficult for users to understand and locate. In order to make these errors easier to find, the best practice is to put a summary of the errors at the top of the form page. To make them easier to understand, the best practice is to display error messages with the form fields they are related to. Both of these practices are implemented by the core Inline Form Errors module.", []);
|
||||
yield "</dd>
|
||||
</dl>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.ui_accessibility.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 66 => 12, 62 => 11, 58 => 10, 54 => 9, 49 => 7, 44 => 6,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.ui_accessibility.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.ui_accessibility.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["trans" => 6];
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,193 @@
|
||||
<?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/core.ui_components.html.twig */
|
||||
class __TwigTemplate_765bd07d735b5000e4c7f1d4f59e99c3 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
|
||||
$context["accessibility_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.ui_accessibility"));
|
||||
// line 8
|
||||
$context["settings_tray_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.settings_tray"));
|
||||
// line 9
|
||||
$context["admin_link"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getRouteLink("/admin", "system.admin"));
|
||||
// line 10
|
||||
yield "<h2>";
|
||||
yield t("What administrative interface components are available?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("The following administrative interface components are provided by the core software and its modules (some contributed modules offer additional functionality):", []);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 13
|
||||
yield t("Accessibility features, to enable all users to perform administrative tasks. See @accessibility_topic for more information.", ["@accessibility_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["accessibility_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 14
|
||||
yield t("A menu system, which you can navigate to find pages for administrative tasks. The core Toolbar module displays this menu on the top or left side of the page (right side in right-to-left languages). There are also contributed module replacements for the core Toolbar module, with additional features, such as the <a href=\"https://www.drupal.org/project/admin_toolbar\">Admin Toolbar module</a>.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 15
|
||||
yield t("The core Shortcuts module enhances the toolbar with a configurable list of links to commonly-used tasks.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 16
|
||||
yield t("If you install the core Contextual Links module, non-administrative pages will contain links leading to related administrative tasks.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 17
|
||||
yield t("In-place or <em>quick</em> editing. In-place editing of configuration is provided by the core Settings Tray module. See @settings_tray_topic for more information.", ["@settings_tray_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["settings_tray_topic"] ?? null)), ]);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 18
|
||||
yield t("The core Help module displays help topics, and provides a Help block that can be placed on administrative pages to provide an overview of their functionality.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<h2>";
|
||||
// line 20
|
||||
yield t("What are the sections of the administrative menu?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 21
|
||||
yield t("The administrative menu, which you can navigate by visiting <em>@admin_link</em> on your site or by using an administrative toolbar, has the following sections (some may not be available, depending on which modules are currently installed on your site, and your permissions):", ["@admin_link" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["admin_link"] ?? null)), ]);
|
||||
yield "</p>
|
||||
<ul>
|
||||
<li>";
|
||||
// line 23
|
||||
yield t("<strong>Content:</strong> Find, manage, and create new pages; manage comments and files.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 24
|
||||
yield t("<strong>Structure:</strong> Place and edit blocks, set up content types and fields, configure menus, administer taxonomy, and configure some contributed modules.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 25
|
||||
yield t("<strong>Appearance:</strong> Switch between themes, install themes, and update existing themes.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 26
|
||||
yield t("<strong>Extend:</strong> Update, install, and uninstall modules.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 27
|
||||
yield t("<strong>Configuration:</strong> Configure the settings for various site functionality, including some contributed modules.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 28
|
||||
yield t("<strong>People:</strong> Manage user accounts and permissions.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 29
|
||||
yield t("<strong>Reports:</strong> Display information about site security, necessary updates, and site activity.", []);
|
||||
yield "</li>
|
||||
<li>";
|
||||
// line 30
|
||||
yield t("<strong>Help:</strong> Get help on using the administrative interface.", []);
|
||||
yield "</li>
|
||||
</ul>
|
||||
<h2>";
|
||||
// line 32
|
||||
yield t("Administrative interface overview", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 33
|
||||
yield t("Install the core modules mentioned above to use the corresponding aspect of the administrative interface. See the related topics listed below for more details on some aspects of the administrative interface.", []);
|
||||
yield "</p>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.ui_components.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 131 => 33, 127 => 32, 122 => 30, 118 => 29, 114 => 28, 110 => 27, 106 => 26, 102 => 25, 98 => 24, 94 => 23, 89 => 21, 85 => 20, 80 => 18, 76 => 17, 72 => 16, 68 => 15, 64 => 14, 60 => 13, 55 => 11, 50 => 10, 48 => 9, 46 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.ui_components.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.ui_components.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 10];
|
||||
static $filters = ["escape" => 13];
|
||||
static $functions = ["render_var" => 7, "help_topic_link" => 7, "help_route_link" => 9];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', 'help_topic_link', 'help_route_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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,193 @@
|
||||
<?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/core.web_services.html.twig */
|
||||
class __TwigTemplate_536fc3a033757a2faf2797aa4a134374 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
|
||||
$context["content_structure_topic"] = $this->extensions['Drupal\Core\Template\TwigExtension']->renderVar($this->extensions['Drupal\help\HelpTwigExtension']->getTopicLink("core.content_structure"));
|
||||
// line 8
|
||||
yield "<h2>";
|
||||
yield t("What is a web service?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 9
|
||||
yield t("A web service allows your site to provide its content and data to other web sites and applications. Typically, the data is transported via <a href=\"https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol\">HTTP</a> in a serialized machine-readable format.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 10
|
||||
yield t("What is serialization?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 11
|
||||
yield t("Serialization is the process of converting complex data structures into text strings, so that they can be exchanged and stored. The reverse process is called <em>deserialization</em>. JSON and XML are the two most-commonly-used data serialization formats for web services.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 12
|
||||
yield t("What is HTTP Basic authentication?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 13
|
||||
yield t("<a href=\"http://en.wikipedia.org/wiki/Basic_access_authentication\">HTTP Basic authentication</a> is a method for authenticating requests by sending a user name and password along with the request.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 14
|
||||
yield t("What modules provide web services?", []);
|
||||
yield "</h2>
|
||||
<p>";
|
||||
// line 15
|
||||
yield t("The following core software modules provide web services:", []);
|
||||
yield "</p>
|
||||
<dl>
|
||||
<dt>";
|
||||
// line 17
|
||||
yield t("JSON:API module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 18
|
||||
yield t("Exposes <em>entities</em> to other applications using a fully compliant implementation of the <a href=\"https://jsonapi.org\">JSON:API Specification</a>. See @content_structure_topic for more information on content entities and fields.", ["@content_structure_topic" => $this->env->getExtension(\Drupal\Core\Template\TwigExtension::class)->renderVar(($context["content_structure_topic"] ?? null)), ]);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 19
|
||||
yield t("RESTful Web Services module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 20
|
||||
yield t("Exposes entities and other resources to other applications using a <a href=\"https://en.wikipedia.org/wiki/Representational_state_transfer\">REST</a> implementation. Data is exchanged using a serialization format such as JSON, and transferred using an authentication method such as HTTP Basic Authentication.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 21
|
||||
yield t("Serialization module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 22
|
||||
yield t("Provides a framework for adding specific serialization formats for other modules to use.", []);
|
||||
yield "</dd>
|
||||
<dt>";
|
||||
// line 23
|
||||
yield t("HTTP Basic Authentication module", []);
|
||||
yield "</dt>
|
||||
<dd>";
|
||||
// line 24
|
||||
yield t("Provides a way for web services to be authenticated using HTTP Basic authentication against site user accounts.", []);
|
||||
yield "</dd>
|
||||
</dl>
|
||||
<p>";
|
||||
// line 26
|
||||
yield t("There are also contributed modules that provide web services.", []);
|
||||
yield "</p>
|
||||
<h2>";
|
||||
// line 27
|
||||
yield t("Additional resources", []);
|
||||
yield "</h2>
|
||||
<ul>
|
||||
<li><a href=\"https://www.drupal.org/docs/8/core/modules/rest\">";
|
||||
// line 29
|
||||
yield t("Online documentation for the RESTful Web Services module", []);
|
||||
yield "</a></li>
|
||||
<li><a href=\"https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi-module\">";
|
||||
// line 30
|
||||
yield t("Online documentation for the JSON:API module", []);
|
||||
yield "</a></li>
|
||||
<li><a href=\"https://www.drupal.org/docs/core-modules-and-themes/core-modules/jsonapi-module/jsonapi-vs-cores-rest-module\">";
|
||||
// line 31
|
||||
yield t("Comparison of the RESTFul Web Services and JSON:API modules", []);
|
||||
yield "</a></li>
|
||||
</ul>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@help_topics/core.web_services.html.twig";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function isTraitable(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 130 => 31, 126 => 30, 122 => 29, 117 => 27, 113 => 26, 108 => 24, 104 => 23, 100 => 22, 96 => 21, 92 => 20, 88 => 19, 84 => 18, 80 => 17, 75 => 15, 71 => 14, 67 => 13, 63 => 12, 59 => 11, 55 => 10, 51 => 9, 46 => 8, 44 => 7,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@help_topics/core.web_services.html.twig", "/var/www/html/web/core/modules/help/help_topics/core.web_services.html.twig");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = ["set" => 7, "trans" => 8];
|
||||
static $filters = ["escape" => 18];
|
||||
static $functions = ["render_var" => 7, "help_topic_link" => 7];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
['set', 'trans'],
|
||||
['escape'],
|
||||
['render_var', '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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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,100 @@
|
||||
<?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;
|
||||
|
||||
/* @olivero/../images/drupal.svg */
|
||||
class __TwigTemplate_273de3190d14e4236a3a16351de08324 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 1
|
||||
yield "<svg width=\"14\" height=\"19\" viewBox=\"0 0 42.15 55.08\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
|
||||
<path d=\"M29.75 11.73C25.87 7.86 22.18 4.16 21.08 0 20 4.16 16.28 7.86 12.4 11.73 6.59 17.54 0 24.12 0 34a21.08 21.08 0 1042.15 0c0-9.88-6.59-16.46-12.4-22.27zM10.84 35.92a14.13 14.13 0 00-1.65 2.62.54.54 0 01-.36.3h-.18c-.47 0-1-.92-1-.92-.14-.22-.27-.45-.4-.69l-.09-.19C5.94 34.25 7 30.28 7 30.28a17.42 17.42 0 012.52-5.41 31.53 31.53 0 012.28-3l1 1 4.72 4.82a.54.54 0 010 .72l-4.93 5.47zm10.48 13.81a7.29 7.29 0 01-5.4-12.14c1.54-1.83 3.42-3.63 5.46-6 2.42 2.58 4 4.35 5.55 6.29a3.08 3.08 0 01.32.48 7.15 7.15 0 011.3 4.12 7.23 7.23 0 01-7.23 7.25zM35 38.14a.84.84 0 01-.67.58h-.14a1.22 1.22 0 01-.68-.55 37.77 37.77 0 00-4.28-5.31l-1.93-2-6.41-6.65a54 54 0 01-3.84-3.94 1.3 1.3 0 00-.1-.15 3.84 3.84 0 01-.51-1v-.19a3.4 3.4 0 011-3c1.24-1.24 2.49-2.49 3.67-3.79 1.3 1.44 2.69 2.82 4.06 4.19a57.6 57.6 0 017.55 8.58A16 16 0 0135.65 34a14.55 14.55 0 01-.65 4.14z\"/>
|
||||
</svg>
|
||||
";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "@olivero/../images/drupal.svg";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 44 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "@olivero/../images/drupal.svg", "/var/www/html/web/core/themes/olivero/images/drupal.svg");
|
||||
}
|
||||
|
||||
public function checkSecurity()
|
||||
{
|
||||
static $tags = [];
|
||||
static $filters = [];
|
||||
static $functions = [];
|
||||
|
||||
try {
|
||||
$this->sandbox->checkSecurity(
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -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>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user