return [$formValues, $categories, $html_message, $messageToken, $returnProperties];
}
- /**
- * Convert from a vague-type/file-extension to mime-type.
- *
- * @param string $type
- * @return string
- * @throws \CRM_Core_Exception
- *
- * @deprecated
- */
- private static function getMimeType($type) {
- $mimeTypes = [
- 'pdf' => 'application/pdf',
- 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
- 'odt' => 'application/vnd.oasis.opendocument.text',
- 'html' => 'text/html',
- ];
- if (isset($mimeTypes[$type])) {
- return $mimeTypes[$type];
- }
- else {
- throw new \CRM_Core_Exception("Cannot determine mime type");
- }
- }
-
/**
* Get the categories required for rendering tokens.
*