You are here

public function LoggerMail::__construct in Helper 8

Constructs a new LoggerMail object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Psr\Log\LoggerInterface $logger: The logger.

File

src/Plugin/Mail/LoggerMail.php, line 49

Class

LoggerMail
Defines a mail backend that captures sent messages to the logger.

Namespace

Drupal\helper\Plugin\Mail

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger) {
  $this->logger = $logger;
}