You are here

public function OAuth2Manager::getScopes in Social Auth 8.2

Same name and namespace in other branches
  1. 3.x src/AuthManager/OAuth2Manager.php \Drupal\social_auth\AuthManager\OAuth2Manager::getScopes()

Gets the scopes defined in the settings form.

Return value

string Data points separated by comma.

Overrides OAuth2ManagerInterface::getScopes

File

src/AuthManager/OAuth2Manager.php, line 62

Class

OAuth2Manager
Defines a basic OAuth2Manager.

Namespace

Drupal\social_auth\AuthManager

Code

public function getScopes() {
  if ($this->scopes === NULL) {
    $this->scopes = $this->settings
      ->get('scopes');
  }
  return $this->scopes;
}