summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/help/src
diff options
context:
space:
mode:
authorLee Rowlands <lee.rowlands@previousnext.com.au>2025-05-21 08:32:09 +1000
committerLee Rowlands <lee.rowlands@previousnext.com.au>2025-05-21 08:32:09 +1000
commit90461b18c7fc7acab3105c787d88a17cec8ec2bd (patch)
tree3878814a77c8cc755edb1e048b02e6108098619a /core/modules/help/src
parent68131d921c52fdc448a7c6ec802afb6e55a15a68 (diff)
downloaddrupal-90461b18c7fc7acab3105c787d88a17cec8ec2bd.tar.gz
drupal-90461b18c7fc7acab3105c787d88a17cec8ec2bd.zip
Issue #3523383 by longwave, mondrake, quietone: Tidy up and tighten deprecation skips
Diffstat (limited to 'core/modules/help/src')
-rw-r--r--core/modules/help/src/HelpTopicTwigLoader.php2
-rw-r--r--core/modules/help/src/HelpTwigExtension.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/help/src/HelpTopicTwigLoader.php b/core/modules/help/src/HelpTopicTwigLoader.php
index fc2e61bbaaf..9178166597c 100644
--- a/core/modules/help/src/HelpTopicTwigLoader.php
+++ b/core/modules/help/src/HelpTopicTwigLoader.php
@@ -96,7 +96,7 @@ class HelpTopicTwigLoader extends FilesystemLoader {
/**
* {@inheritdoc}
*/
- protected function findTemplate($name, $throw = TRUE) {
+ protected function findTemplate($name, $throw = TRUE): ?string {
if (!str_ends_with($name, '.html.twig')) {
if (!$throw) {
return NULL;
diff --git a/core/modules/help/src/HelpTwigExtension.php b/core/modules/help/src/HelpTwigExtension.php
index e41ad66503d..b8a77a914f6 100644
--- a/core/modules/help/src/HelpTwigExtension.php
+++ b/core/modules/help/src/HelpTwigExtension.php
@@ -41,7 +41,7 @@ class HelpTwigExtension extends AbstractExtension {
/**
* {@inheritdoc}
*/
- public function getFunctions() {
+ public function getFunctions(): array {
return [
new TwigFunction('help_route_link', [$this, 'getRouteLink']),
new TwigFunction('help_topic_link', [$this, 'getTopicLink']),