function NavigationTopBarHooks::help

Implements hook_help().

File

core/modules/navigation/modules/navigation_top_bar/src/Hook/NavigationTopBarHooks.php, line 16

Class

NavigationTopBarHooks
Hook implementations for navigation_top_bar.

Namespace

Drupal\navigation_top_bar\Hook

Code

public function help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        case 'help.page.navigation_top_bar':
            $output = '<h2>' . t('About') . '</h2>';
            $output .= '<p>' . t('The Navigation Top Bar module is a Feature Flag module which, when enabled, renders the experimental navigation top bar.') . '</p>';
            $output .= '<p>' . t('The top bar provides relevant administrative information and tasks for the current page. It is not feature complete nor fully functional.') . '</p>';
            $output .= '<p>' . t('Leaving this module enabled can affect both admin and front-end pages layouts and blocks like Primary admin actions, whose content might be moved to te top bar.') . '</p>';
            $output .= '<p>' . t('It is recommended to leave this module off while it is under active development and experimental phase.') . '</p>';
            $output .= '<p>' . t('For more information, see the <a href=":docs">online documentation for the Navigation Top Bar module</a>.', [
                ':docs' => 'https://www.drupal.org/project/navigation',
            ]) . '</p>';
            return $output;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.