function csv_serialization_requirements in CSV Serialization 8
Same name and namespace in other branches
- 8.2 csv_serialization.install \csv_serialization_requirements()
Implements hook_requirements().
File
- ./
csv_serialization.install, line 10
Code
function csv_serialization_requirements($phase) {
$requirements = [];
if ($phase == 'install') {
if (!class_exists('\\League\\Csv\\Writer')) {
$requirements['league_csv'] = [
'description' => t('CSV Serialization requires the League\\Csv library.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}