function hook_forward_mail_pre_render_alter in Forward 4.0.x
Same name and namespace in other branches
- 8.2 forward.api.php \hook_forward_mail_pre_render_alter()
- 4.x forward.api.php \hook_forward_mail_pre_render_alter()
Alter the message body before it is rendered.
Parameters
array $render_array: The render array to alter.
\Drupal\Core\Form\FormStateInterface $form_state: A form_state being processed. Alterable.
1 invocation of hook_forward_mail_pre_render_alter()
- ForwardForm::submitForm in src/
Form/ ForwardForm.php - Form submission handler.
File
- ./
forward.api.php, line 44 - Hooks provided by the Forward module.
Code
function hook_forward_mail_pre_render_alter(array &$render_array, FormStateInterface &$form_state) {
$render_array['#my_module'] = [
'#markup' => 'my_data',
];
}