You are here

public static function OAuthCredentials::create in Salesforce Suite 8.3

Constructor helper.

Parameters

array $configuration: Plugin configuration.

Return value

\Drupal\salesforce\Consumer\OAuthCredentials Credentials, valid or not.

Overrides SalesforceCredentials::create

File

src/Consumer/OAuthCredentials.php, line 30

Class

OAuthCredentials
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'], $configuration['login_url']);
}