Skip to content

Commit

Permalink
Merge pull request #25511 from eileenmcnaughton/dep_token6
Browse files Browse the repository at this point in the history
Extra deprecation for clarity on token function `convertPseudoConstantsUsingMetadata`
  • Loading branch information
totten authored Feb 21, 2023
2 parents 75617ad + 03250a7 commit 34a2e86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Utils/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -1723,12 +1723,15 @@ public static function formatTokensForDisplay($tokens) {
}

/**
* @deprecated
*
* @param $value
* @param $token
*
* @return bool|int|mixed|string|null
*/
protected static function convertPseudoConstantsUsingMetadata($value, $token) {
CRM_Core_Error::deprecatedFunctionWarning('token processor');
// Convert pseudoconstants using metadata
if ($value && is_numeric($value)) {
$allFields = CRM_Contact_BAO_Contact::exportableFields('All');
Expand Down

0 comments on commit 34a2e86

Please sign in to comment.