diff --git a/src/Form/UwAddUsersForm.php b/src/Form/UwAddUsersForm.php index d2453be722e61d3f41ea33fb24fbe7d5da5213e4..51d3e4cb68e35d0b7b1234094263cfd14bc03565 100644 --- a/src/Form/UwAddUsersForm.php +++ b/src/Form/UwAddUsersForm.php @@ -25,7 +25,7 @@ class UwAddUsersForm extends FormBase { // The list of users from this form. $form['users'] = [ '#title' => $this->t('WatIAM user ID(s): (maximum 8 characters per ID)'), - '#description' => $this->t('Enter a single WatIAM user ID, or multiple WatIAM user IDs, one per line. All letters will be converted to lower case. Duplicates will be ignored.<br>You can use <a href="https://idm.uwaterloo.ca/search/" target="_blank">authenticated WatIAM search</a> if you don\'t know their user ID (will open a new window).'), + '#description' => $this->t('Enter a single WatIAM user ID, or multiple WatIAM user IDs, one per line. All letters will be converted to lower case. Duplicates will be ignored.<br>You can use <a href="https://iamtools.uwaterloo.ca/directory/" target="_blank">authenticated campus people directory</a> if you don\'t know their user ID (will open a new window).'), '#type' => 'textarea', '#required' => TRUE, ]; @@ -68,13 +68,13 @@ class UwAddUsersForm extends FormBase { // Don't process long user IDs. if (strlen($user) > 8) { - $this->messenger()->addError($this->t('The user ID <em>@user</em> is too long and was skipped.', [ '@user' => $user ] )); + $this->messenger()->addError($this->t('The user ID <em>@user</em> is too long and was skipped.', ['@user' => $user])); continue; } // Don't process user IDs with invalid characters. if (!preg_match('/^[a-z0-9]+$/', $user)) { - $this->messenger()->addError($this->t('The user ID <em>@user</em> contains invalid characters and was skipped.', [ '@user' => $user ] )); + $this->messenger()->addError($this->t('The user ID <em>@user</em> contains invalid characters and was skipped.', ['@user' => $user])); continue; } @@ -110,7 +110,7 @@ class UwAddUsersForm extends FormBase { // Do the LDAP lookup. $person = \Drupal::service('uw_cfg_common.uw_ldap')->lookupPerson($user); if (!$person) { - $this->messenger()->addError($this->t('The user ID <em>@user</em> could not be found (or was set to private) and was skipped.', [ '@user' => $user ] )); + $this->messenger()->addError($this->t('The user ID <em>@user</em> could not be found (or was set to private) and was skipped.', ['@user' => $user])); continue; } $firstname = empty($person['givenname'][0]) ? 'Firstname' : $person['givenname'][0];