public function DrupalGatherContentClient::setCredentials in GatherContent 8.5
Same name and namespace in other branches
- 8.4 src/DrupalGatherContentClient.php \Drupal\gathercontent\DrupalGatherContentClient::setCredentials()
Put the authentication config into client.
1 call to DrupalGatherContentClient::setCredentials()
File
- src/
DrupalGatherContentClient.php, line 26
Class
- DrupalGatherContentClient
- Extends the GatherContentClient class with Drupal specific functionality.
Namespace
Drupal\gathercontentCode
public function setCredentials() {
$config = \Drupal::config('gathercontent.settings');
$this
->setEmail($config
->get('gathercontent_username') ?: '');
$this
->setApiKey($config
->get('gathercontent_api_key') ?: '');
}