I am using hook_mail_alter in drupal 8 to alter the email messages sent through contact form .
How can I access
$message['params'] fields in
I am getting the following values with
Array (  => contact_message  => sender  => contact_form )
Can anyone suggest how I access the contact form fields?
When I access the values with
print_r($message['params']['contact_form']);die; I don't get anything displayed.