public function LegacyMessenger::__construct in Service Container 7.2
Same name and namespace in other branches
- 8 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::__construct()
- 7 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::__construct()
Constructs a LegacyMessenger object.
Parameters
\Drupal\service_container\Legacy\Drupal7 $drupal7_service: The Drupal 7 legacy service.
File
- src/
Messenger/ LegacyMessenger.php, line 30 - Contains \Drupal\service_container\LegacyMessenger.
Class
- LegacyMessenger
- Class that manage the messages in Drupal.
Namespace
Drupal\service_container\MessengerCode
public function __construct(Drupal7 $drupal7_service) {
$this->drupal7 = $drupal7_service;
}