You are here

public function LegacyMessenger::__construct in Service Container 8

Same name and namespace in other branches
  1. 7.2 src/Messenger/LegacyMessenger.php \Drupal\service_container\Messenger\LegacyMessenger::__construct()
  2. 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\Messenger

Code

public function __construct(Drupal7 $drupal7_service) {
  $this->drupal7 = $drupal7_service;
}