contact_form_user_form_alter(&$form, FormStateInterface $form_state)
Implements hook_form_FORM_ID_alter().
Add the enable personal contact form to an individual user's account page.
See also
\Drupal\user\ProfileForm::form()
File
core/modules/contact/contact.module, line 169 Enables the use of personal and site-wide contact forms.
Code
function contact_form_user_form_alter(&$form, FormStateInterface $form_state) {
$form['contact'] = array(
'#type' => 'details',
'#title' =