You are here

public static function OAuthCredentials::callbackUrl in Salesforce Suite 8.3

Static wrapper to generate the callback url from the callback route.

Return value

string The callback URL.

2 calls to OAuthCredentials::callbackUrl()
OAuthCredentials::getCallbackUrl in src/Consumer/OAuthCredentials.php
OAuthCredentials::__construct in src/Consumer/OAuthCredentials.php

File

src/Consumer/OAuthCredentials.php, line 47

Class

OAuthCredentials
Salesforce credentials extension, for drupalisms.

Namespace

Drupal\salesforce\Consumer

Code

public static function callbackUrl() {
  return Url::fromRoute('salesforce.oauth_callback', [], [
    'absolute' => TRUE,
    'https' => TRUE,
  ])
    ->toString();
}