function hook_help_topics_info_alter

Same name and namespace in other branches
  1. 9 core/modules/help_topics/help_topics.api.php \hook_help_topics_info_alter()
  2. 8.9.x core/modules/help_topics/help_topics.api.php \hook_help_topics_info_alter()
  3. 11.x core/modules/help/help.api.php \hook_help_topics_info_alter()

Perform alterations on help topic definitions.

Parameters

array $info: Array of help topic plugin definitions keyed by their plugin ID.

Related topics

2 functions implement hook_help_topics_info_alter()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

HelpTopicsTestHooks::helpTopicsInfoAlter in core/modules/help/tests/modules/help_topics_test/src/Hook/HelpTopicsTestHooks.php
Implements hook_help_topics_info_alter().
help_topics_test_help_topics_info_alter in core/modules/help/tests/modules/help_topics_test/help_topics_test.module
Implements hook_help_topics_info_alter().
1 invocation of hook_help_topics_info_alter()
HelpTopicPluginManager::__construct in core/modules/help/src/HelpTopicPluginManager.php
Constructs a new HelpTopicManager object.

File

core/modules/help/help.api.php, line 110

Code

function hook_help_topics_info_alter(array &$info) {
  // Alter the help topic to be displayed on admin/help.
  $info['example.help_topic']['top_level'] = TRUE;
}

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