I have a form that I want to override title of textfield. I managed to do that with this snippet in _form_alter function
$form['some_wrapper']['email'] = [
'#type' => 'textfield',
'#title' => t('Change this title'),
];
Wondering if i could just override this with some method like setValue?
$form['some_wrapper']['email']['#title'] = t('Change this title');
?