public function DevelMailLogger::__construct in Devel Mail Logger 8
Constructs a new DevelMailLog 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.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Database\Connection $database: A Database connection to use for reading and writing database data.
File
- src/
Plugin/ Mail/ DevelMailLogger.php, line 49
Class
- DevelMailLogger
- Defines a mail backend that saves emails to DB.
Namespace
Drupal\devel_mail_logger\Plugin\MailCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database) {
$this->database = $database;
}