if (empty($caseID) && !empty($this->_caseIds[$index])) {
$caseID = $this->_caseIds[$index];
}
- $rows[] = ['contactId' => $contactID, 'caseId' => $caseID];
+ $rows[] = ['contact_id' => $contactID, 'schema' => ['caseId' => $caseID, 'contactId' => $contactID]];
}
return $rows;
}
);
}
+ /**
+ * Get the token processor schema required to list any tokens for this task.
+ *
+ * @return array
+ */
+ protected function getTokenSchema(): array {
+ return ['contactId', 'caseId'];
+ }
+
}