public function TestHelpSection::listSearchableTopics in Drupal 9
Same name and namespace in other branches
- 8 core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpSection/TestHelpSection.php \Drupal\help_topics_test\Plugin\HelpSection\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_topics/ tests/ modules/ help_topics_test/ src/ Plugin/ HelpSection/ TestHelpSection.php, line 37
Class
- TestHelpSection
- Provides a searchable help section for testing.
Namespace
Drupal\help_topics_test\Plugin\HelpSectionCode
public function listSearchableTopics() {
return [
'foo',
'bar',
];
}