public function GoogleAuthManager::setSdk in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8.2 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8.4 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8.5 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8.6 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8.7 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 - 8.8 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::setSdk()
 
Set instance of SDK.
Parameters
object $sdk: SDK instance.
Return value
mixed Returns mixed.
Overrides AuthManagerInterface::setSdk
File
- modules/
custom/ social_auth_google/ src/ GoogleAuthManager.php, line 33  
Class
- GoogleAuthManager
 - Class GoogleAuthManager.
 
Namespace
Drupal\social_auth_googleCode
public function setSdk($sdk) {
  if (!$sdk instanceof \Google_Client) {
    throw new InvalidArgumentException('SDK object should be instance of \\Google_Client class');
  }
  $this->sdk = $sdk;
}