You are here

public function SalesforceCredentials::isValid in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/Consumer/SalesforceCredentials.php \Drupal\salesforce\Consumer\SalesforceCredentials::isValid()
  2. 5.0.x src/Consumer/SalesforceCredentials.php \Drupal\salesforce\Consumer\SalesforceCredentials::isValid()

Sanity check for credentials validity.

Return value

bool TRUE if credentials are set properly. Otherwise false.

Overrides SalesforceCredentialsInterface::isValid

2 methods override SalesforceCredentials::isValid()
JWTCredentials::isValid in modules/salesforce_jwt/src/Consumer/JWTCredentials.php
Sanity check for credentials validity.
SalesforceOAuthCredentials::isValid in modules/salesforce_oauth/src/Consumer/SalesforceOAuthCredentials.php
Sanity check for credentials validity.

File

src/Consumer/SalesforceCredentials.php, line 43

Class

SalesforceCredentials
Stub class SalesforceCredentials. Used for broken / fallback plugin only.

Namespace

Drupal\salesforce\Consumer

Code

public function isValid() {

  // This class is a stub.
  return FALSE;
}