You are here

public function GoogleAuthSettings::isActive in Open Social 8.2

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  2. 8 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  3. 8.3 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  4. 8.4 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  5. 8.5 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  6. 8.6 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  7. 8.7 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()
  8. 8.8 modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php \Drupal\social_auth_google\Settings\GoogleAuthSettings::isActive()

Returns status of social network.

Return value

bool The status of the social network.

Overrides GoogleAuthSettingsInterface::isActive

File

modules/custom/social_auth_google/src/Settings/GoogleAuthSettings.php, line 51

Class

GoogleAuthSettings
Defines methods to get Social Auth Google app settings.

Namespace

Drupal\social_auth_google\Settings

Code

public function isActive() {
  return (bool) $this->config
    ->get('status');
}