function commerce_mollie_requirements in Commerce Mollie 8
Implements hook_requirements().
File
- ./
commerce_mollie.install, line 11 - Contains install and update functions for Commerce Mollie.
Code
function commerce_mollie_requirements($phase) {
$requirements = [];
if ($phase === 'install') {
if (!class_exists('\\Mollie\\Api\\MollieApiClient')) {
$requirements['commerce_mollie_library'] = [
'description' => t('Commerce Mollie requires the mollie/mollie-api-php library.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}