Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -21,9 +21,9 @@
|
|||
* The page-specific help information provided by this hook appears in the
|
||||
* Help block (provided by the core Help module), if the block is displayed on
|
||||
* that page. The module overview help information is displayed by the Help
|
||||
* module. It can be accessed from the page at admin/help or from the Extend
|
||||
* Extend page. If a module implements hook_help() the help system expects
|
||||
* module overview help to be provided.
|
||||
* module. It can be accessed from the page at /admin/help or from the Extend
|
||||
* page. If a module implements hook_help() the help system expects module
|
||||
* overview help to be provided.
|
||||
*
|
||||
* For detailed usage examples of:
|
||||
* - Module overview help, see content_translation_help(). Module overview
|
||||
|
@ -40,8 +40,9 @@
|
|||
* The current route match. This can be used to generate different help
|
||||
* output for different pages that share the same route.
|
||||
*
|
||||
* @return string
|
||||
* A localized string containing the help text.
|
||||
* @return string|array
|
||||
* A render array, localized string, or object that can be rendered into
|
||||
* a string, containing the help text.
|
||||
*/
|
||||
function hook_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
|
||||
switch ($route_name) {
|
||||
|
@ -55,6 +56,25 @@ function hook_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform alterations on help page section plugin definitions.
|
||||
*
|
||||
* Sections for the page at /admin/help are provided by plugins. This hook
|
||||
* allows modules to alter the plugin definitions.
|
||||
*
|
||||
* @param array $info
|
||||
* Array of plugin information exposed by hook page section plugins, altered
|
||||
* by reference.
|
||||
*
|
||||
* @see \Drupal\help\HelpSectionPluginInterface
|
||||
* @see \Drupal\help\Annotation\HelpSection
|
||||
* @see \Drupal\help\HelpSectionManager
|
||||
*/
|
||||
function hook_help_section_info_alter(&$info) {
|
||||
// Alter the header for the module overviews section.
|
||||
$info['hook_help']['header'] = t('Overviews of modules');
|
||||
}
|
||||
|
||||
/**
|
||||
* @} End of "addtogroup hooks".
|
||||
*/
|
||||
|
|
Reference in a new issue