search_api_algolia.install in Search API Algolia 8
Same filename and directory in other branches
Install file.
File
search_api_algolia.installView source
<?php
/**
* @file
* Install file.
*/
/**
* Implements hook_requirements().
*/
function search_api_algolia_requirements($phase) {
$requirements = [];
if ($phase == 'install') {
if (!class_exists('\\AlgoliaSearch\\Version')) {
$requirements['search_api_algolia_library'] = [
'description' => t('Algolia Search requires the algolia/algoliasearch-client-php library.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}
Functions
Name | Description |
---|---|
search_api_algolia_requirements | Implements hook_requirements(). |