You are here

protected function Settings::getSystemMails in Courier 2.x

Same name and namespace in other branches
  1. 8 courier_system/src/Form/Settings.php \Drupal\courier_system\Form\Settings::getSystemMails()

Get mail supported by courier_system.

Return value

array Mail IDs keyed by module name.

2 calls to Settings::getSystemMails()
Settings::buildForm in courier_system/src/Form/Settings.php
Form constructor.
Settings::submitForm in courier_system/src/Form/Settings.php
Form submission handler.

File

courier_system/src/Form/Settings.php, line 72

Class

Settings
Configure Courier System settings.

Namespace

Drupal\courier_system\Form

Code

protected function getSystemMails() {
  $options['user'] = [
    'user_cancel_confirm' => [
      'title' => $this
        ->t('Account cancellation confirmation'),
      'description' => $this
        ->t('Sent to users when they attempt to cancel their accounts.'),
    ],
    'user_password_reset' => [
      'title' => $this
        ->t('Notify user when password reset'),
      'description' => $this
        ->t('Sent to users who request a new password.'),
    ],
    'user_status_activated' => [
      'title' => $this
        ->t('Notify user when account is activated'),
      'description' => $this
        ->t('Sent to users upon account activation (when an administrator activates an account of a user who has already registered, on a site where administrative approval is required)'),
    ],
    'user_status_blocked' => [
      'title' => $this
        ->t('Account blocked'),
      'description' => $this
        ->t('Sent to users when their accounts are blocked.'),
    ],
    'user_status_canceled' => [
      'title' => $this
        ->t('Account canceled'),
      'description' => $this
        ->t('Sent to users when they attempt to cancel their accounts.'),
    ],
    'user_register_admin_created' => [
      'title' => $this
        ->t('Welcome (new user created by administrator)'),
      'description' => $this
        ->t('Sent to new member accounts created by an administrator.'),
    ],
    'user_register_no_approval_required' => [
      'title' => $this
        ->t('Welcome (no approval required)'),
      'description' => $this
        ->t('Sent to new members upon registering, when no administrator approval is required.'),
    ],
    'user_register_pending_approval' => [
      'title' => $this
        ->t('Welcome (awaiting approval)'),
      'description' => $this
        ->t('Sent to new members upon registering, when administrative approval is required.'),
    ],
  ];
  return $options;
}