You are here

function social_auth_google_requirements in Social Auth Google 8

Implements hook_requirements().

File

./social_auth_google.install, line 14
Install and uninstall functions for the Google Login module.

Code

function social_auth_google_requirements($phase) {
  $requirements = [];

  // Social API should be installed at this point in order to check library.
  \Drupal::service('module_installer')
    ->install([
    'social_api',
  ]);
  if ($phase == 'install') {
    $requirements = SocialApiImplementerInstaller::checkLibrary('social_auth_google', 'Social Auth Google', 'google/apiclient', 2.0, 3.0);
  }
  return $requirements;
}