public function SocialSwiftmailSettingsForm::__construct in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_swiftmail/src/Form/SocialSwiftmailSettingsForm.php \Drupal\social_swiftmail\Form\SocialSwiftmailSettingsForm::__construct()
- 10.3.x modules/social_features/social_swiftmail/src/Form/SocialSwiftmailSettingsForm.php \Drupal\social_swiftmail\Form\SocialSwiftmailSettingsForm::__construct()
- 10.1.x modules/social_features/social_swiftmail/src/Form/SocialSwiftmailSettingsForm.php \Drupal\social_swiftmail\Form\SocialSwiftmailSettingsForm::__construct()
- 10.2.x modules/social_features/social_swiftmail/src/Form/SocialSwiftmailSettingsForm.php \Drupal\social_swiftmail\Form\SocialSwiftmailSettingsForm::__construct()
SocialSwiftmailSettingsForm constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\activity_creator\Plugin\ActivityDestinationManager $activity_destination_manager: The activity destination manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides ConfigFormBase::__construct
File
- modules/
social_features/ social_swiftmail/ src/ Form/ SocialSwiftmailSettingsForm.php, line 52
Class
- SocialSwiftmailSettingsForm
- Class SocialSwiftmailSettingsForm.
Namespace
Drupal\social_swiftmail\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ActivityDestinationManager $activity_destination_manager, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory);
$this->emailActivityDestination = $activity_destination_manager
->createInstance('email');
$this->batchBuilder = new BatchBuilder();
$this->moduleHandler = $module_handler;
}