function lightning_core_requirements in Lightning Core 8.4
Same name and namespace in other branches
- 8.5 lightning_core.install \lightning_core_requirements()
Implements hook_requirements().
File
- ./
lightning_core.install, line 15 - Contains install and update routines for Lightning.
Code
function lightning_core_requirements() {
$requirements = [];
$profile = Drupal::installProfile();
$profile = Drupal::service('extension.list.profile')
->get($profile);
if (isset($profile->info['base profile'])) {
$requirements['lightning_core_base_profile'] = [
'title' => t('Base profile'),
'value' => $profile->info['base profile'],
];
}
return $requirements;
}