user.theme.es6.js 431 B

123456789101112131415
  1. /**
  2. * @file
  3. * Theme elements for user password forms.
  4. */
  5. (Drupal => {
  6. /**
  7. * Constructs a password confirm message element
  8. *
  9. * @return {string}
  10. * A string representing a DOM fragment.
  11. */
  12. Drupal.theme.passwordConfirmMessage = translate =>
  13. `<div aria-live="polite" aria-atomic="true" class="password-confirm-message js-password-confirm-message">${translate.confirmTitle} <span></span></div>`;
  14. })(Drupal);