We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ea6ff commit 9612a99Copy full SHA for 9612a99
Documentation/ContentObjects/UserAndUserInt/_Hostname.php
@@ -4,16 +4,19 @@
4
5
namespace Vendor\SitePackage\UserFunctions;
6
7
+use Psr\Http\Message\ServerRequestInterface;
8
+
9
final class Hostname
10
{
11
/**
12
* Return standard host name for the local machine
13
*
14
* @param string Empty string (no content to process)
15
* @param array TypoScript configuration
16
+ * @param ServerRequestInterface The current PSR-7 request object
17
* @return string HTML result
18
*/
- public function getHostname(string $content, array $conf): string
19
+ public function getHostname(string $content, array $conf, ServerRequestInterface $request): string
20
21
return gethostname() ?: '';
22
}
0 commit comments