From 59473117c6bbb9d76650e088b03369f792ad74db Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Fri, 8 Dec 2023 15:32:44 -0400 Subject: [PATCH] Coding standards. --- dgi_members.tokens.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dgi_members.tokens.inc b/dgi_members.tokens.inc index e43a716..1f4d8f7 100644 --- a/dgi_members.tokens.inc +++ b/dgi_members.tokens.inc @@ -70,6 +70,15 @@ function dgi_members_tokens($type, $tokens, array $data, array $options, Bubblea return $output; } -function _dgi_members_get_token_name($parameter) { +/** + * Helper; map URL query parameter to placeholder content. + * + * @param string $parameter + * The URL query parameter to map. + * + * @return string + * The value as it should be in the token placeholder. + */ +function _dgi_members_get_token_name(string $parameter) : string { return "dgi_member__{$parameter}"; }