function multiversion_requirements in Multiversion 8
Same name and namespace in other branches
- 8.2 multiversion.install \multiversion_requirements()
Implements hook_requirements().
File
- ./
multiversion.install, line 17
Code
function multiversion_requirements($phase) {
$requirements = [];
if ($phase === 'install') {
if (\Drupal::moduleHandler()
->moduleExists('workspaces')) {
$requirements['workspaces_incompatibility'] = [
'severity' => REQUIREMENT_ERROR,
'description' => t('Multiversion can not be installed when Workspaces is also installed.'),
];
}
}
return $requirements;
}