You are here

public function GoogleAuthSettings::getRestrictedDomain in Social Auth Google 3.x

Same name and namespace in other branches
  1. 8.2 src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::getRestrictedDomain()
  2. 8 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
Defines methods to get Social Auth Google settings.

Namespace

Drupal\social_auth_google\Settings

Code

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