Skip to content

Commit

Permalink
Coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Dec 8, 2023
1 parent 0c684ad commit 5947311
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dgi_members.tokens.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
}

0 comments on commit 5947311

Please sign in to comment.