You are here

public function Oauth2ClientPluginBase::getScopeSeparator in OAuth2 Client 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/Oauth2Client/Oauth2ClientPluginBase.php \Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginBase::getScopeSeparator()

Get the separator used to join the scopes in the OAuth2 query string.

Return value

string|null The scopes separator to join the list of scopes in the query string.

Overrides Oauth2ClientPluginInterface::getScopeSeparator

File

src/Plugin/Oauth2Client/Oauth2ClientPluginBase.php, line 387

Class

Oauth2ClientPluginBase
Base class for Oauth2Client plugins.

Namespace

Drupal\oauth2_client\Plugin\Oauth2Client

Code

public function getScopeSeparator() {
  if (!isset($this->pluginDefinition['scope_separator'])) {
    return ',';
  }
  return $this->pluginDefinition['scope_separator'];
}