public function SalesforceOAuthCredentials::isValid in Salesforce Suite 8.4
Same name and namespace in other branches
- 5.0.x modules/salesforce_oauth/src/Consumer/SalesforceOAuthCredentials.php \Drupal\salesforce_oauth\Consumer\SalesforceOAuthCredentials::isValid()
Sanity check for credentials validity.
Return value
bool TRUE if credentials are set properly. Otherwise false.
Overrides SalesforceCredentials::isValid
File
- modules/
salesforce_oauth/ src/ Consumer/ SalesforceOAuthCredentials.php, line 58
Class
- SalesforceOAuthCredentials
- Salesforce credentials extension, for drupalisms.
Namespace
Drupal\salesforce_oauth\ConsumerCode
public function isValid() {
return !empty($this->loginUrl) && !empty($this->consumerSecret) && !empty($this->consumerId);
}