function EmailTypeOptions::getPossibleOptions
Overrides OptionsProviderInterface::getPossibleOptions
File
-
src/
TypedData/ Options/ EmailTypeOptions.php, line 15
Class
- EmailTypeOptions
- Options provider for the types of user account email to send.
Namespace
Drupal\rules\TypedData\OptionsCode
public function getPossibleOptions(AccountInterface $account = NULL) {
return [
'register_admin_created' => $this->t('Welcome message for user created by the admin'),
'register_no_approval_required' => $this->t('Welcome message when user self-registers'),
'register_pending_approval' => $this->t('Welcome message, user pending admin approval'),
'password_reset' => $this->t('Password recovery request'),
'status_activated' => $this->t('Account activated'),
'status_blocked' => $this->t('Account blocked'),
'cancel_confirm' => $this->t('Account cancellation request'),
'status_canceled' => $this->t('Account canceled'),
];
}