I have searched related questions but could't really find a decisive YES or NO.
I changed a few files in core/modules/user/ ... to alter the display of the form used on my site. For example:
$form['account']['name'] = [
'#type' => 'textfield',
'#title' => $this->t('Username'),
'#maxlength' => USERNAME_MAX_LENGTH,
'#description' => $this->t(''),
'#required' => TRUE,
'#attributes' => [
'class' => ['username'],
'placeholder' => $this->t('Username'), // ADDED THIS
'autocorrect' => 'off',
'autocapitalize' => 'off',
'spellcheck' => 'false',
],
'#default_value' => (!$register ? $account->getAccountName() : ''),
'#access' => ($register || ($user->id() == $account->id() && $user->hasPermission('change own username')) || $admin),
];
Do these edited core files revert back to their original state thus deleting my changes when I update Drupal in the future?