You are here

public static function SalesforceCredentials::create in Salesforce Suite 5.0.x

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

Create helper.

Parameters

array $configuration: Plugin configuration.

Return value

static

Overrides SalesforceCredentialsInterface::create

2 methods override SalesforceCredentials::create()
JWTCredentials::create in modules/salesforce_jwt/src/Consumer/JWTCredentials.php
Constructor helper.
SalesforceOAuthCredentials::create in modules/salesforce_oauth/src/Consumer/SalesforceOAuthCredentials.php
Constructor helper.

File

src/Consumer/SalesforceCredentials.php, line 51

Class

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

Namespace

Drupal\salesforce\Consumer

Code

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