navigation_top_bar.module

Same filename in other branches
  1. 11.x core/modules/navigation/modules/navigation_top_bar/navigation_top_bar.module

File

core/modules/navigation/modules/navigation_top_bar/navigation_top_bar.module

View source
<?php


/**
 * @file
 * Primary module hooks for navigation top bar module.
 */
declare (strict_types=1);
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function navigation_top_bar_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;
    }
}

Functions

Title Deprecated Summary
navigation_top_bar_help Implements hook_help().

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