You are here

public static function SalesforceOAuthCredentials::create in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x modules/salesforce_oauth/src/Consumer/SalesforceOAuthCredentials.php \Drupal\salesforce_oauth\Consumer\SalesforceOAuthCredentials::create()

Constructor helper.

Parameters

array $configuration: Plugin configuration.

Return value

\Drupal\salesforce_oauth\Consumer\SalesforceOAuthCredentials Credentials, valid or not.

Overrides SalesforceCredentials::create

File

modules/salesforce_oauth/src/Consumer/SalesforceOAuthCredentials.php, line 31

Class

SalesforceOAuthCredentials
Salesforce credentials extension, for drupalisms.

Namespace

Drupal\salesforce_oauth\Consumer

Code

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