Create a re-engagement page
[MAILPOET-3856]
This commit is contained in:
@@ -14,6 +14,8 @@ class Subscription {
|
||||
const ACTION_MANAGE = 'manage';
|
||||
const ACTION_UNSUBSCRIBE = 'unsubscribe';
|
||||
const ACTION_CONFIRM_UNSUBSCRIBE = 'confirmUnsubscribe';
|
||||
const ACTION_RE_ENGAGEMENT = 'reEngagement';
|
||||
|
||||
public $allowedActions = [
|
||||
self::ACTION_CAPTCHA,
|
||||
self::ACTION_CAPTCHA_IMAGE,
|
||||
@@ -21,7 +23,9 @@ class Subscription {
|
||||
self::ACTION_MANAGE,
|
||||
self::ACTION_UNSUBSCRIBE,
|
||||
self::ACTION_CONFIRM_UNSUBSCRIBE,
|
||||
self::ACTION_RE_ENGAGEMENT,
|
||||
];
|
||||
|
||||
public $permissions = [
|
||||
'global' => AccessControl::NO_ACCESS_RESTRICTION,
|
||||
];
|
||||
@@ -79,6 +83,10 @@ class Subscription {
|
||||
$subscription->unsubscribe();
|
||||
}
|
||||
|
||||
public function reEngagement($data) {
|
||||
$this->initSubscriptionPage(UserSubscription\Pages::ACTION_RE_ENGAGEMENT, $data);
|
||||
}
|
||||
|
||||
private function initSubscriptionPage($action, $data) {
|
||||
return $this->subscriptionPages->init($action, $data, true, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user