You are here

public function TransportFactory::getDefaultTransportMethod in Swift Mailer 8

Same name and namespace in other branches
  1. 8.2 src/TransportFactory.php \Drupal\swiftmailer\TransportFactory::getDefaultTransportMethod()

Returns the transport type configured as default.

Return value

string The configured transport method.

Overrides TransportFactoryInterface::getDefaultTransportMethod

File

src/TransportFactory.php, line 37

Class

TransportFactory
A service that instantiates transport subsystems.

Namespace

Drupal\swiftmailer

Code

public function getDefaultTransportMethod() {
  return $this->transportConfig
    ->get('transport');
}