function demo_umami_help
Same name in other branches
- 10 core/profiles/demo_umami/demo_umami.profile \demo_umami_help()
Implements hook_help().
File
-
core/
profiles/ demo_umami/ demo_umami.profile, line 16
Code
function demo_umami_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.demo_umami':
$output = '';
$output .= '<h2>' . t('About') . '</h2>';
$output .= '<p>' . t('Umami is an example food magazine website that demonstrates some of the features of Drupal core. It is intended to be used as an example site, rather than as a foundation for building your own site. For more information, see the <a href=":demo_umami">online documentation for the Umami installation profile</a>.', [
':demo_umami' => 'https://www.drupal.org/node/2941833',
]) . '</p>';
$output .= '<h2>' . t('Uses') . '</h2>';
$output .= '<h3>' . t('Demonstrating Drupal core functionality') . '</h3>';
$output .= '<p>' . t('You can look around the site to get ideas for what kinds of features Drupal is capable of, and to see how an actual site can be built using Drupal core.') . '</p>';
$output .= '<h3>' . t('Sample content') . '</h3>';
$output .= '<p>' . t('The Umami profile is very handy if you are developing a feature and need some sample content.') . '</p>';
$output .= '<h2>' . t('What to do when you are ready to build your Drupal website') . '</h2>';
$output .= '<p>' . t("Once you've tried Drupal using Umami and want to build your own site, simply reinstall Drupal and select a different installation profile (such as Standard) from the install screen.") . '</p>';
return $output;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.