Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/ProfileForm.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
36 public function save(array $form, FormStateInterface $form_state) { | 36 public function save(array $form, FormStateInterface $form_state) { |
37 $account = $this->entity; | 37 $account = $this->entity; |
38 $account->save(); | 38 $account->save(); |
39 $form_state->setValue('uid', $account->id()); | 39 $form_state->setValue('uid', $account->id()); |
40 | 40 |
41 drupal_set_message($this->t('The changes have been saved.')); | 41 $this->messenger()->addStatus($this->t('The changes have been saved.')); |
42 } | 42 } |
43 | 43 |
44 /** | 44 /** |
45 * Provides a submit handler for the 'Cancel account' button. | 45 * Provides a submit handler for the 'Cancel account' button. |
46 */ | 46 */ |