interface NetworkInterface in Social API 8
Same name and namespace in other branches
- 8.2 src/Plugin/NetworkInterface.php \Drupal\social_api\Plugin\NetworkInterface
- 3.x src/Plugin/NetworkInterface.php \Drupal\social_api\Plugin\NetworkInterface
Defines an interface for Social Network plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- interface \Drupal\social_api\Plugin\NetworkInterface
Expanded class hierarchy of NetworkInterface
All classes that implement NetworkInterface
File
- src/
Plugin/ NetworkInterface.php, line 11
Namespace
Drupal\social_api\PluginView source
interface NetworkInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {
/**
* Authenticates the request with the SDK library.
*
* Most of the time this will just mean settings some state properties for so
* the publish method can pass them along to the external SDK library. The
* authentication is considered to be at the plugin level. If your network
* implementation needs the authentication to happen at every request,
* implement that business logic in doPost.
*/
public function authenticate();
/**
* Gets the underlying SDK library.
*
* @return mixed
* The SDK client.
*/
public function getSdk();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
NetworkInterface:: |
public | function | Authenticates the request with the SDK library. | 1 |
NetworkInterface:: |
public | function | Gets the underlying SDK library. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |