You are here

public function OAuth2Manager::setClient in Social API 3.x

Same name and namespace in other branches
  1. 8.2 src/AuthManager/OAuth2Manager.php \Drupal\social_api\AuthManager\OAuth2Manager::setClient()

Sets the provider client.

Parameters

mixed $client: The service client.

Return value

$this The current object.

Overrides OAuth2ManagerInterface::setClient

File

src/AuthManager/OAuth2Manager.php, line 80

Class

OAuth2Manager
Defines basic OAuth2Manager to be used by social auth and social post.

Namespace

Drupal\social_api\AuthManager

Code

public function setClient($client) {
  $this->client = $client;
  return $this;
}