protected function getEditedFieldNames(FormStateInterface
$form_state) { return array_merge([ 'name',
'pass',
'mail',
'timezone',
'langcode',
'preferred_langcode',
'preferred_admin_langcode',
], parent::
getEditedFieldNames($form_state));
} /**
* {@inheritdoc}
*/
protected function flagViolations(EntityConstraintViolationListInterface
$violations, array
$form, FormStateInterface
$form_state) { // Manually flag violations of fields not handled by the form display. This
// is necessary as entity form displays only flag violations for fields
// contained in the display.
$field_names =
[ 'name',