You are here

public function TransportFactoryInterface::getTransport in Swift Mailer 8

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

Instantiates a transport object of the specified type.

Parameters

string $transport_type: The type of transform to instantiate.

Return value

\Swift_Transport A new instance of the specified transport type.

1 method overrides TransportFactoryInterface::getTransport()
TransportFactory::getTransport in src/TransportFactory.php
Instantiates a transport object of the specified type.

File

src/TransportFactoryInterface.php, line 27

Class

TransportFactoryInterface
An interface for transport factory services.

Namespace

Drupal\swiftmailer

Code

public function getTransport($transport_type);