protected _getEmailInstance ( Cake\Mailer\Email $email = null ) : Cake\Mailer\Email | ||
Cake\Mailer\Email | if email provided, we'll use the instance instead of creating a new one | |
Résultat | Cake\Mailer\Email |
protected function _getEmailInstance(Email $email = null)
{
if ($email === null) {
$email = new Email('default');
$email->emailFormat('both');
}
return $email;
}