function NotificationHandler::sendRegisterAdminCreated

Same name and namespace in other branches
  1. main core/modules/user/src/NotificationHandler.php \Drupal\user\NotificationHandler::sendRegisterAdminCreated()

Notifies the user when their account has been created by an administrator.

Parameters

\Drupal\user\UserInterface $account: The entity that represents the user who is being notified.

Return value

bool TRUE if the email has been sent successfully, FALSE if an error occurred or if the sending has been canceled.

File

core/modules/user/src/NotificationHandler.php, line 42

Class

NotificationHandler
Implements a service to dispatch user notification messages.

Namespace

Drupal\user

Code

public function sendRegisterAdminCreated(UserInterface $account) : bool {
  return (bool) $this->sendToUser('register_admin_created', $account);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.