class EmailTypeOptions

Options provider for the types of user account email to send.

Hierarchy

Expanded class hierarchy of EmailTypeOptions

File

src/TypedData/Options/EmailTypeOptions.php, line 10

Namespace

Drupal\rules\TypedData\Options
View source
class EmailTypeOptions extends OptionsProviderBase {
    
    /**
     * {@inheritdoc}
     */
    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'),
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
EmailTypeOptions::getPossibleOptions public function Returns an array of possible values with labels for display. Overrides OptionsProviderInterface::getPossibleOptions
OptionsProviderBase::getPossibleValues public function Returns an array of possible values. Overrides OptionsProviderInterface::getPossibleValues
OptionsProviderBase::getSettableOptions public function Returns an array of settable values with labels for display. Overrides OptionsProviderInterface::getSettableOptions
OptionsProviderBase::getSettableValues public function Returns an array of settable values. Overrides OptionsProviderInterface::getSettableValues
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.