You are here

interface HttpServiceApiWrapperFactoryInterface in HTTP Client Manager 8.2

Interface HttpServiceApiWrapperFactoryInterface.

@package Drupal\http_client_manager

Hierarchy

Expanded class hierarchy of HttpServiceApiWrapperFactoryInterface

All classes that implement HttpServiceApiWrapperFactoryInterface

1 file declares its use of HttpServiceApiWrapperFactoryInterface
ExampleController.php in modules/http_client_manager_example/src/Controller/ExampleController.php

File

src/HttpServiceApiWrapperFactoryInterface.php, line 12

Namespace

Drupal\http_client_manager
View source
interface HttpServiceApiWrapperFactoryInterface {

  /**
   * Add an HTTP Service API wrapper.
   *
   * @param \Drupal\http_client_manager\Plugin\HttpServiceApiWrapper\HttpServiceApiWrapperInterface $wrapper
   *   A HTTP Service API Wrapper Service.
   * @param string $api
   *   The HTTP Service API name.
   */
  public function addApiWrapper(HttpServiceApiWrapperInterface $wrapper, $api);

  /**
   * Get HTTP Service API wrapper.
   *
   * @param string $name
   *   The HTTP Service API wrapper name.
   *
   * @return \Drupal\http_client_manager\Plugin\HttpServiceApiWrapper\HttpServiceApiWrapperInterface
   *   An HTTP Service API Wrapper Service.
   *
   * @throws \InvalidArgumentException
   *   Throws an InvalidArgumentException if the provided name does not exists.
   */
  public function get($name);

}

Members

Namesort descending Modifiers Type Description Overrides
HttpServiceApiWrapperFactoryInterface::addApiWrapper public function Add an HTTP Service API wrapper. 1
HttpServiceApiWrapperFactoryInterface::get public function Get HTTP Service API wrapper. 1