function DemoUmamiRequirements::runtime
Implements hook_runtime_requirements().
File
-
core/
profiles/ demo_umami/ src/ Hook/ DemoUmamiRequirements.php, line 25
Class
- DemoUmamiRequirements
- Requirements for the Demo: Umami Food Magazine (Experimental) profile.
Namespace
Drupal\demo_umami\HookCode
public function runtime() : array {
$requirements = [];
$profile = \Drupal::installProfile();
$info = $this->profileExtensionList
->getExtensionInfo($profile);
$requirements['experimental_profile_used'] = [
'title' => $this->t('Experimental installation profile used'),
'value' => $info['name'],
'description' => $this->t('Experimental profiles are provided for testing purposes only. Use at your own risk. To start building a new site, reinstall Drupal and choose a non-experimental profile.'),
'severity' => REQUIREMENT_WARNING,
];
return $requirements;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.