NavigationTopBarHooks.php
Namespace
Drupal\navigation_top_bar\HookFile
-
core/
modules/ navigation/ modules/ navigation_top_bar/ src/ Hook/ NavigationTopBarHooks.php
View source
<?php
namespace Drupal\navigation_top_bar\Hook;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for navigation_top_bar.
*/
class NavigationTopBarHooks {
/**
* Implements hook_help().
*/
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;
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
NavigationTopBarHooks | Hook implementations for navigation_top_bar. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.