public function SalesforceAuthProviderPluginBase::getCredentials in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getCredentials()
- 5.0.x src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getCredentials()
Return the credentials configured for this auth provider instance.
Credentials contain consumer key, login url, secret, etc.
Return value
\Drupal\salesforce\Consumer\SalesforceCredentialsInterface The credentials.
Overrides SalesforceAuthProviderInterface::getCredentials
1 call to SalesforceAuthProviderPluginBase::getCredentials()
- SalesforceAuthProviderPluginBase::__construct in src/
SalesforceAuthProviderPluginBase.php - SalesforceOAuthPlugin constructor.
File
- src/
SalesforceAuthProviderPluginBase.php, line 214
Class
- SalesforceAuthProviderPluginBase
- Shared methods for auth providers.
Namespace
Drupal\salesforceCode
public function getCredentials() {
if (!$this->credentials || !$this->credentials
->isValid()) {
$pluginDefinition = $this
->getPluginDefinition();
$this->credentials = $pluginDefinition['credentials_class']::create($this->configuration);
}
return $this->credentials;
}