function Messenger::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Messenger/Messenger.php \Drupal\Core\Messenger\Messenger::__construct()
- 10 core/lib/Drupal/Core/Messenger/Messenger.php \Drupal\Core\Messenger\Messenger::__construct()
- 9 core/lib/Drupal/Core/Messenger/Messenger.php \Drupal\Core\Messenger\Messenger::__construct()
- 8.9.x core/lib/Drupal/Core/Messenger/Messenger.php \Drupal\Core\Messenger\Messenger::__construct()
Messenger constructor.
Parameters
\Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface $flashBag: The flash bag.
\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $killSwitch: The kill switch.
File
-
core/
lib/ Drupal/ Core/ Messenger/ Messenger.php, line 23
Class
- Messenger
- The messenger service.
Namespace
Drupal\Core\MessengerCode
public function __construct(protected FlashBagInterface $flashBag, protected KillSwitch $killSwitch) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.