public function MailchimpCampaignController::view in Mailchimp 8
Same name and namespace in other branches
- 2.x modules/mailchimp_campaign/src/Controller/MailchimpCampaignController.php \Drupal\mailchimp_campaign\Controller\MailchimpCampaignController::view()
View a Mailchimp campaign.
Parameters
\Drupal\mailchimp_campaign\Entity\MailchimpCampaign $mailchimp_campaign: The Mailchimp campaign to view.
Return value
array Renderable array of page content.
1 string reference to 'MailchimpCampaignController::view'
- mailchimp_campaign.routing.yml in modules/
mailchimp_campaign/ mailchimp_campaign.routing.yml - modules/mailchimp_campaign/mailchimp_campaign.routing.yml
File
- modules/
mailchimp_campaign/ src/ Controller/ MailchimpCampaignController.php, line 245
Class
- MailchimpCampaignController
- Mailchimp Campaign controller.
Namespace
Drupal\mailchimp_campaign\ControllerCode
public function view(MailchimpCampaign $mailchimp_campaign) {
$view_builder = $this->entityTypeManager
->getViewBuilder('mailchimp_campaign');
$content = $view_builder
->view($mailchimp_campaign);
return $content;
}