hook_help_section_info_alter

function hook_help_section_info_alter

hook_help_section_info_alter(&$info)

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.

Parameters

array $info: Array of plugin information exposed by hook page section plugins, altered by reference.

See also

\Drupal\help\HelpSectionPluginInterface

\Drupal\help\Annotation\HelpSection

\Drupal\help\HelpSectionManager

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/modules/help/help.api.php, line 73
Hooks for the Help system.

Code

function hook_help_section_info_alter(&$info) {
  // Alter the header for the module overviews section.
  $info['hook_help']['header'] = t('Overviews of modules');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!help!help.api.php/function/hook_help_section_info_alter/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部