You are here

interface TransportFactoryInterface in Swift Mailer 8

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

An interface for transport factory services.

Hierarchy

Expanded class hierarchy of TransportFactoryInterface

All classes that implement TransportFactoryInterface

1 file declares its use of TransportFactoryInterface
SwiftMailer.php in src/Plugin/Mail/SwiftMailer.php

File

src/TransportFactoryInterface.php, line 8

Namespace

Drupal\swiftmailer
View source
interface TransportFactoryInterface {

  /**
   * Returns the transport type configured as default.
   *
   * @return string
   *   The configured transport method.
   */
  public function getDefaultTransportMethod();

  /**
   * Instantiates a transport object of the specified type.
   *
   * @param string $transport_type
   *   The type of transform to instantiate.
   *
   * @return \Swift_Transport
   *   A new instance of the specified transport type.
   */
  public function getTransport($transport_type);

}

Members

Namesort descending Modifiers Type Description Overrides
TransportFactoryInterface::getDefaultTransportMethod public function Returns the transport type configured as default. 1
TransportFactoryInterface::getTransport public function Instantiates a transport object of the specified type. 1