protected function ServicesClientConnection::getPlugin in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/include/connection.inc \ServicesClientConnection::getPlugin()
Loads required class, initialized object by connection configuration.
Parameters
string $type: Type of required plugin.
Return value
ServicesClientConnectionPlugin
1 call to ServicesClientConnection::getPlugin()
- ServicesClientConnection::__construct in services_client_connection/
include/ connection.inc - Initialize connection to remote Drupal site
File
- services_client_connection/
include/ connection.inc, line 98 - Main services client connection class which exposes simple API
Class
- ServicesClientConnection
- @file Main services client connection class which exposes simple API
Code
protected function getPlugin($type) {
// Load plugin class
$name = $this->connection->config[$type]['plugin'];
return services_client_connection_get_plugin($type, $name, $this->connection, $this->connection->config[$type]['config'], $this);
}