public function SalesforceAuthProviderPluginBase::getApiVersion in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getApiVersion()
- 5.0.x src/SalesforceAuthProviderPluginBase.php \Drupal\salesforce\SalesforceAuthProviderPluginBase::getApiVersion()
Get the globally configured API version to use.
Return value
string The string name of the API version.
Overrides SalesforceAuthProviderInterface::getApiVersion
1 call to SalesforceAuthProviderPluginBase::getApiVersion()
- SalesforceAuthProviderPluginBase::getApiEndpoint in src/
SalesforceAuthProviderPluginBase.php - API Url for this plugin.
File
- src/
SalesforceAuthProviderPluginBase.php, line 300
Class
- SalesforceAuthProviderPluginBase
- Shared methods for auth providers.
Namespace
Drupal\salesforceCode
public function getApiVersion() {
$version = \Drupal::config('salesforce.settings')
->get('rest_api_version.version');
if (empty($version) || \Drupal::config('salesforce.settings')
->get('use_latest')) {
return self::LATEST_API_VERSION;
}
return \Drupal::config('salesforce.settings')
->get('rest_api_version.version');
}