Skip to content
Snippets Groups Projects
Commit 909911fd authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-5983: Removing extra array wrapping when loading existing user.

parent 98c08c91
No related branches found
No related tags found
3 merge requests!297Feature/istwcms 5983 bulk account creation,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -86,7 +86,6 @@ class UwAddUsersForm extends FormBase { ...@@ -86,7 +86,6 @@ class UwAddUsersForm extends FormBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
* @throws \Exception
*/ */
public function submitForm(array &$form, FormStateInterface $form_state) { public function submitForm(array &$form, FormStateInterface $form_state) {
...@@ -123,7 +122,7 @@ class UwAddUsersForm extends FormBase { ...@@ -123,7 +122,7 @@ class UwAddUsersForm extends FormBase {
} }
$existing_user = $this->entityTypeManager->getStorage('user')->loadByProperties([ $existing_user = $this->entityTypeManager->getStorage('user')->loadByProperties([
['name' => $user], 'name' => $user,
]); ]);
/** @var \Drupal\user\UserInterface|bool $existing_user */ /** @var \Drupal\user\UserInterface|bool $existing_user */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment