public function CampaignMonitorCampaignCampaignController::NodeOverview in Campaign Monitor 8
Campaign Monitor tab on Node page Here the administrator can:
- send the draft to Campaign monitor.
Parameters
$node:
Return value
array
1 string reference to 'CampaignMonitorCampaignCampaignController::NodeOverview'
- campaignmonitor_campaign.routing.yml in modules/
campaignmonitor_campaign/ campaignmonitor_campaign.routing.yml - modules/campaignmonitor_campaign/campaignmonitor_campaign.routing.yml
File
- modules/
campaignmonitor_campaign/ src/ Controller/ CampaignMonitorCampaignCampaignController.php, line 209
Class
- CampaignMonitorCampaignCampaignController
- Campaign Monitor Lists controller.
Namespace
Drupal\campaignmonitor_campaign\ControllerCode
public function NodeOverview($node) {
$form = \Drupal::formBuilder()
->getForm('Drupal\\campaignmonitor_campaign\\Form\\CampaignMonitorCampaignSendForm', $node);
// Also show the campaign in its selected View mode.
$node_storage = $this->entityManager
->getStorage('node');
// We use the load function to load a single node object.
$node = $node_storage
->load($node);
$view_builder = \Drupal::entityTypeManager()
->getViewBuilder('node');
$settings = campaignmonitor_campaign_get_node_settings('all', $node
->bundle());
$render_array = $view_builder
->view($node, $settings['view_mode']);
$filepath = campaignmonitor_campaign_get_filepath($node, 'path');
// $scan_css = new CampaignMonitorCssScanner($filepath);
//
return [
'node' => $render_array,
'form' => $form,
];
}