public function MailchimpCampaignViewBuilder::__construct in Mailchimp 8
Constructs a new MailchimpCampaignViewBuilder.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
Overrides EntityViewBuilder::__construct
File
- modules/
mailchimp_campaign/ src/ Entity/ MailchimpCampaignViewBuilder.php, line 51
Class
- MailchimpCampaignViewBuilder
- Defines the render controller for MailchimpCampaign entities.
Namespace
Drupal\mailchimp_campaign\EntityCode
public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, DateFormatterInterface $date_formatter, MessengerInterface $messenger) {
parent::__construct($entity_type, $entity_manager, $language_manager);
$this->dateFormatter = $date_formatter;
$this->messenger = $messenger;
}