function TestHelpSection::listSearchableTopics
Returns the IDs of topics that should be indexed for searching.
Return value
string[] An array of topic IDs that should be searchable. IDs need to be unique within this HelpSection plugin.
Overrides SearchableHelpInterface::listSearchableTopics
File
-
core/
modules/ help/ tests/ modules/ help_topics_test/ src/ Plugin/ HelpSection/ TestHelpSection.php, line 40
Class
- TestHelpSection
- Provides a searchable help section for testing.
Namespace
Drupal\help_topics_test\Plugin\HelpSectionCode
public function listSearchableTopics() {
return [
'foo',
'bar',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.