public function TestHelpSection::listSearchableTopics in Drupal 10
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()
- 9 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 39
Class
- TestHelpSection
- Provides a searchable help section for testing.
Namespace
Drupal\help_topics_test\Plugin\HelpSectionCode
public function listSearchableTopics() {
return [
'foo',
'bar',
];
}