You are here

public function PhpMail::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php \Drupal\Core\Mail\Plugin\Mail\PhpMail::__construct()

PhpMail constructor.

File

core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php, line 39

Class

PhpMail
Defines the default Drupal mail backend, using PHP's native mail() function.

Namespace

Drupal\Core\Mail\Plugin\Mail

Code

public function __construct() {
  $this->configFactory = \Drupal::configFactory();
}