Unable to remove label field from the registration form I am unable to remove the label from a form element of the registration form.

I have:


Enabled the kint module for debugging
Implemented hook_form_alter() and tried to change the form variables 

function drupalfresh_form_user_register_form_alter(&amp;$form, FormStateInterface $form_state, $form_id) {
  kint($form);
  $form['field_company_name']['#attributes']['widget'][0]['#title'] = t('');
}



This doesn't change the form.

This is how the form element appears.
Actually the can be changed using this code: 

$form['field_company_name']['widget'][0]['value']['#title'] = $this-&gt;t('WHATEVER');