Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (CustomerRegistry $customerRegistry, StoreManagerInterface $storeManager, TransportBuilder $transportBuilder, CustomerViewHelper $customerViewHelper, DataObjectProcessor $dataProcessor, ScopeConfigInterface $scopeConfig, SenderResolverInterface $senderResolver=null) | |
credentialsChanged (CustomerInterface $savedCustomer, $origCustomerEmail, $isPasswordChanged=false) | |
passwordReminder (CustomerInterface $customer) | |
passwordResetConfirmation (CustomerInterface $customer) | |
newAccount (CustomerInterface $customer, $type=self::NEW_ACCOUNT_EMAIL_REGISTERED, $backUrl='', $storeId=0, $sendemailStoreId=null) | |
Data Fields | |
const | XML_PATH_FORGOT_EMAIL_IDENTITY = 'customer/password/forgot_email_identity' |
const | XML_PATH_RESET_PASSWORD_TEMPLATE = 'customer/password/reset_password_template' |
const | XML_PATH_CHANGE_EMAIL_TEMPLATE = 'customer/account_information/change_email_template' |
const | XML_PATH_CHANGE_EMAIL_AND_PASSWORD_TEMPLATE |
const | XML_PATH_FORGOT_EMAIL_TEMPLATE = 'customer/password/forgot_email_template' |
const | XML_PATH_REMIND_EMAIL_TEMPLATE = 'customer/password/remind_email_template' |
const | XML_PATH_REGISTER_EMAIL_IDENTITY = 'customer/create_account/email_identity' |
const | XML_PATH_REGISTER_EMAIL_TEMPLATE = 'customer/create_account/email_template' |
const | XML_PATH_REGISTER_NO_PASSWORD_EMAIL_TEMPLATE = 'customer/create_account/email_no_password_template' |
const | XML_PATH_CONFIRM_EMAIL_TEMPLATE = 'customer/create_account/email_confirmation_template' |
const | XML_PATH_CONFIRMED_EMAIL_TEMPLATE = 'customer/create_account/email_confirmed_template' |
const | TEMPLATE_TYPES |
![]() | |
const | NEW_ACCOUNT_EMAIL_REGISTERED = 'registered' |
const | NEW_ACCOUNT_EMAIL_REGISTERED_NO_PASSWORD = 'registered_no_password' |
const | NEW_ACCOUNT_EMAIL_CONFIRMATION = 'confirmation' |
const | NEW_ACCOUNT_EMAIL_CONFIRMED = 'confirmed' |
Protected Attributes | |
$customerViewHelper | |
$dataProcessor | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 22 of file EmailNotification.php.
__construct | ( | CustomerRegistry | $customerRegistry, |
StoreManagerInterface | $storeManager, | ||
TransportBuilder | $transportBuilder, | ||
CustomerViewHelper | $customerViewHelper, | ||
DataObjectProcessor | $dataProcessor, | ||
ScopeConfigInterface | $scopeConfig, | ||
SenderResolverInterface | $senderResolver = null |
||
) |
CustomerRegistry | $customerRegistry | |
StoreManagerInterface | $storeManager | |
TransportBuilder | $transportBuilder | |
CustomerViewHelper | $customerViewHelper | |
DataObjectProcessor | $dataProcessor | |
ScopeConfigInterface | $scopeConfig | |
SenderResolverInterface | null | $senderResolver |
Definition at line 110 of file EmailNotification.php.
credentialsChanged | ( | CustomerInterface | $savedCustomer, |
$origCustomerEmail, | |||
$isPasswordChanged = false |
|||
) |
Send notification to customer when email or/and password changed
CustomerInterface | $savedCustomer | |
string | $origCustomerEmail | |
bool | $isPasswordChanged |
Implements EmailNotificationInterface.
Definition at line 136 of file EmailNotification.php.
newAccount | ( | CustomerInterface | $customer, |
$type = self::NEW_ACCOUNT_EMAIL_REGISTERED , |
|||
$backUrl = '' , |
|||
$storeId = 0 , |
|||
$sendemailStoreId = null |
|||
) |
Send email with new account related information
CustomerInterface | $customer | |
string | $type | |
string | $backUrl | |
string | $storeId | |
string | $sendemailStoreId |
LocalizedException |
Implements EmailNotificationInterface.
Definition at line 368 of file EmailNotification.php.
passwordReminder | ( | CustomerInterface | $customer | ) |
Send email with new customer password
CustomerInterface | $customer |
Implements EmailNotificationInterface.
Definition at line 315 of file EmailNotification.php.
passwordResetConfirmation | ( | CustomerInterface | $customer | ) |
Send email with reset password confirmation link
CustomerInterface | $customer |
Implements EmailNotificationInterface.
Definition at line 339 of file EmailNotification.php.
|
protected |
Definition at line 84 of file EmailNotification.php.
|
protected |
Definition at line 89 of file EmailNotification.php.
const TEMPLATE_TYPES |
self::NEW_ACCOUNT_EMAIL_REGISTERED welcome email, when confirmation is disabled and password is set self::NEW_ACCOUNT_EMAIL_REGISTERED_NO_PASSWORD welcome email, when confirmation is disabled and password is not set self::NEW_ACCOUNT_EMAIL_CONFIRMED welcome email, when confirmation is enabled and password is set self::NEW_ACCOUNT_EMAIL_CONFIRMATION email with confirmation link
Definition at line 59 of file EmailNotification.php.
const XML_PATH_CHANGE_EMAIL_AND_PASSWORD_TEMPLATE |
Definition at line 33 of file EmailNotification.php.
const XML_PATH_CHANGE_EMAIL_TEMPLATE = 'customer/account_information/change_email_template' |
Definition at line 31 of file EmailNotification.php.
const XML_PATH_CONFIRM_EMAIL_TEMPLATE = 'customer/create_account/email_confirmation_template' |
Definition at line 46 of file EmailNotification.php.
const XML_PATH_CONFIRMED_EMAIL_TEMPLATE = 'customer/create_account/email_confirmed_template' |
Definition at line 48 of file EmailNotification.php.
const XML_PATH_FORGOT_EMAIL_IDENTITY = 'customer/password/forgot_email_identity' |
#+ Configuration paths for email templates and identities
Definition at line 27 of file EmailNotification.php.
const XML_PATH_FORGOT_EMAIL_TEMPLATE = 'customer/password/forgot_email_template' |
Definition at line 36 of file EmailNotification.php.
const XML_PATH_REGISTER_EMAIL_IDENTITY = 'customer/create_account/email_identity' |
Definition at line 40 of file EmailNotification.php.
const XML_PATH_REGISTER_EMAIL_TEMPLATE = 'customer/create_account/email_template' |
Definition at line 42 of file EmailNotification.php.
const XML_PATH_REGISTER_NO_PASSWORD_EMAIL_TEMPLATE = 'customer/create_account/email_no_password_template' |
Definition at line 44 of file EmailNotification.php.
const XML_PATH_REMIND_EMAIL_TEMPLATE = 'customer/password/remind_email_template' |
Definition at line 38 of file EmailNotification.php.
const XML_PATH_RESET_PASSWORD_TEMPLATE = 'customer/password/reset_password_template' |
Definition at line 29 of file EmailNotification.php.