You are here

public function GoogleAuthSettings::getRestrictedDomain in Social Auth Google 8

Same name and namespace in other branches
  1. 8.2 src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::getRestrictedDomain()
  2. 3.x src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::getRestrictedDomain()

Gets the Restricted domain.

Return value

string The Restricted domain.

Overrides GoogleAuthSettingsInterface::getRestrictedDomain

File

src/Settings/GoogleAuthSettings.php, line 56

Class

GoogleAuthSettings
Returns the client information.

Namespace

Drupal\social_auth_google\Settings

Code

public function getRestrictedDomain() {
  if (!$this->restrictedDomain) {
    $this->restrictedDomain = $this->config
      ->get('restricted_domain');
  }
  return $this->restrictedDomain;
}