function navigation_requirements
Same name in other branches
- 10 core/modules/navigation/navigation.install \navigation_requirements()
Implements hook_requirements().
File
-
core/
modules/ navigation/ navigation.install, line 11
Code
function navigation_requirements($phase) {
$requirements = [];
if ($phase === 'runtime') {
if (\Drupal::moduleHandler()->moduleExists('toolbar')) {
$requirements['toolbar'] = [
'title' => t('Toolbar and Navigation modules are both installed'),
'value' => t('The Navigation module is a complete replacement for the Toolbar module and disables its functionality when both modules are installed. If you are planning to continue using Navigation module, you can uninstall the Toolbar module now.'),
'severity' => REQUIREMENT_WARNING,
];
}
}
return $requirements;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.