You are here

public function SalesforceAuthConfig::getCredentials in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Entity/SalesforceAuthConfig.php \Drupal\salesforce\Entity\SalesforceAuthConfig::getCredentials()

Get credentials.

Return value

\Drupal\salesforce\Consumer\SalesforceCredentialsInterface|false Credentials or FALSE.

Throws

\Drupal\Component\Plugin\Exception\PluginException

File

src/Entity/SalesforceAuthConfig.php, line 147

Class

SalesforceAuthConfig
Defines a Salesforce Auth entity.

Namespace

Drupal\salesforce\Entity

Code

public function getCredentials() {
  return $this
    ->getPlugin() ? $this
    ->getPlugin()
    ->getCredentials() : FALSE;
}