You are here

public static function SalesforceCredentials::create in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Consumer/SalesforceCredentials.php \Drupal\salesforce\Consumer\SalesforceCredentials::create()
  2. 5.0.x src/Consumer/SalesforceCredentials.php \Drupal\salesforce\Consumer\SalesforceCredentials::create()
1 method overrides SalesforceCredentials::create()
OAuthCredentials::create in src/Consumer/OAuthCredentials.php
Constructor helper.

File

src/Consumer/SalesforceCredentials.php, line 58

Class

SalesforceCredentials
Salesforce credentials extension, for drupalisms.

Namespace

Drupal\salesforce\Consumer

Code

public static function create(array $configuration) {
  return new static($configuration['consumer_key'], $configuration['consumer_secret'], NULL);
}