function NotificationHandler::sendCancelConfirm
Same name and namespace in other branches
- 11.x core/modules/user/src/NotificationHandler.php \Drupal\user\NotificationHandler::sendCancelConfirm()
Confirms with the user that they have requested to cancel their account.
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 146
Class
- NotificationHandler
- Implements a service to dispatch user notification messages.
Namespace
Drupal\userCode
public function sendCancelConfirm(UserInterface $account) : bool {
return (bool) $this->sendToUser('cancel_confirm', $account);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.