You are here

public static function SocialAuthController::deleteLoginButtonSettings in Social Auth 8.2

Same name and namespace in other branches
  1. 8 src/Controller/SocialAuthController.php \Drupal\social_auth\Controller\SocialAuthController::deleteLoginButtonSettings()
  2. 3.x src/Controller/SocialAuthController.php \Drupal\social_auth\Controller\SocialAuthController::deleteLoginButtonSettings()

Delete the settings for the login button for the given social networking.

Parameters

string $module: The module machine name.

File

src/Controller/SocialAuthController.php, line 38

Class

SocialAuthController
Manages login buttons settings and integration table renderization.

Namespace

Drupal\social_auth\Controller

Code

public static function deleteLoginButtonSettings($module) {
  $config = \Drupal::configFactory()
    ->getEditable('social_auth.settings');
  $config
    ->clear('auth.' . $module)
    ->save();
}