function date_recur_requirements in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 date_recur.install \date_recur_requirements()
- 8 date_recur.install \date_recur_requirements()
- 3.x date_recur.install \date_recur_requirements()
- 3.0.x date_recur.install \date_recur_requirements()
Implements hook_requirements().
File
- ./
date_recur.install, line 22
Code
function date_recur_requirements($phase) : array {
$requirements = [];
if (!class_exists('\\RRule\\RRule')) {
$requirements['date_recur_dependencies'] = [
'title' => t('Date recur'),
'description' => \t('Date recur has unmet Composer dependencies. Read the <a href="@url">documentation</a> on how to install them.', [
'@url' => 'https://www.drupal.org/node/2627292',
]),
'severity' => \REQUIREMENT_ERROR,
];
}
return $requirements;
}