public function CampaignMonitorUserController::subscriptionPage in Campaign Monitor 8.2
Same name and namespace in other branches
- 8 modules/campaignmonitor_user/src/Controller/CampaignMonitorUserController.php \Drupal\campaignmonitor_user\Controller\CampaignMonitorUserController::subscriptionPage()
View subscriptions.
This controller assumes that it is only invoked for authenticated users. This is enforced for the 'user.page' route with the '_user_is_logged_in' requirement.
1 string reference to 'CampaignMonitorUserController::subscriptionPage'
- campaignmonitor_user.routing.yml in modules/
campaignmonitor_user/ campaignmonitor_user.routing.yml - modules/campaignmonitor_user/campaignmonitor_user.routing.yml
File
- modules/
campaignmonitor_user/ src/ Controller/ CampaignMonitorUserController.php, line 91
Class
- CampaignMonitorUserController
- Controller routines for user routes.
Namespace
Drupal\campaignmonitor_user\ControllerCode
public function subscriptionPage() {
// Get the user's current subscriptions.
$config = $this->config
->get('campaignmonitor_user.settings');
$config = $config
->getRawData();
return $this->formBuilder
->getForm('\\Drupal\\campaignmonitor\\Form\\CampaignMonitorSubscribeForm', $config);
}