);
}
+ /**
+ * Get alias tokens.
+ *
+ * @return array
+ */
protected function getAliasTokens() {
return array(
'id' => 'contribution_id',
);
}
+ /**
+ * Class constructor.
+ */
public function __construct() {
$tokens = CRM_Utils_Array::subset(
CRM_Utils_Array::collect('title', CRM_Contribute_DAO_Contribution::fields()),
*
* @param \Civi\Token\TokenRow $row
* The record for which we want token values.
+ * @param string $entity
* @param string $field
* The name of the token field.
* @param mixed $prefetch
* Any data that was returned by the prefetch().
+ *
* @return mixed
+ * @throws \CRM_Core_Exception
*/
public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) {
$actionSearchResult = $row->context['actionSearchResult'];