public function SocialNodeMessenger::__construct in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/social_features/social_node/src/Service/SocialNodeMessenger.php \Drupal\social_node\Service\SocialNodeMessenger::__construct()
- 10.1.x modules/social_features/social_node/src/Service/SocialNodeMessenger.php \Drupal\social_node\Service\SocialNodeMessenger::__construct()
- 10.2.x modules/social_features/social_node/src/Service/SocialNodeMessenger.php \Drupal\social_node\Service\SocialNodeMessenger::__construct()
SocialNodeMessenger constructor.
Parameters
\Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface $flash_bag: The flash bag.
\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $killSwitch: The kill switch.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides Messenger::__construct
File
- modules/
social_features/ social_node/ src/ Service/ SocialNodeMessenger.php, line 40
Class
- SocialNodeMessenger
- The messenger service.
Namespace
Drupal\social_node\ServiceCode
public function __construct(FlashBagInterface $flash_bag, KillSwitch $killSwitch, ModuleHandlerInterface $module_handler) {
parent::__construct($flash_bag, $killSwitch);
$this->moduleHandler = $module_handler;
}