interface HttpServiceApiWrapperFactoryInterface in HTTP Client Manager 8.2
Interface HttpServiceApiWrapperFactoryInterface.
@package Drupal\http_client_manager
Hierarchy
- interface \Drupal\http_client_manager\HttpServiceApiWrapperFactoryInterface
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_managerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpServiceApiWrapperFactoryInterface:: |
public | function | Add an HTTP Service API wrapper. | 1 |
HttpServiceApiWrapperFactoryInterface:: |
public | function | Get HTTP Service API wrapper. | 1 |