function social_auth_linkedin_requirements in Social Auth LinkedIn 8
Implements hook_requirements().
File
- ./
social_auth_linkedin.install, line 14 - Install and uninstall functions for the LinkedIn Login module.
Code
function social_auth_linkedin_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_linkedin', 'Social Auth Linkedin', 'linkedinapi/linkedin', '1.1.0.0', '2.0.0.0');
}
return $requirements;
}