function help_topics_test_help_topics_info_alter
Same name in other branches
- 9 core/modules/help_topics/tests/modules/help_topics_test/help_topics_test.module \help_topics_test_help_topics_info_alter()
- 8.9.x core/modules/help_topics/tests/modules/help_topics_test/help_topics_test.module \help_topics_test_help_topics_info_alter()
- 10 core/modules/help/tests/modules/help_topics_test/help_topics_test.module \help_topics_test_help_topics_info_alter()
Implements hook_help_topics_info_alter().
File
-
core/
modules/ help/ tests/ modules/ help_topics_test/ help_topics_test.module, line 25
Code
function help_topics_test_help_topics_info_alter(array &$info) {
// To prevent false positive search results limit list to testing topis only.
$filter = fn(string $key) => str_starts_with($key, 'help_topics_test') || in_array($key, [
'help_topics_test_direct_yml',
'help_topics_derivatives:test_derived_topic',
], TRUE);
$info = array_filter($info, $filter, ARRAY_FILTER_USE_KEY);
$info['help_topics_test.test']['top_level'] = \Drupal::state()->get('help_topics_test.test:top_level', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.