public function HelpTopicSection::listSearchableTopics in Drupal 8
Same name and namespace in other branches
- 9 core/modules/help_topics/src/Plugin/HelpSection/HelpTopicSection.php \Drupal\help_topics\Plugin\HelpSection\HelpTopicSection::listSearchableTopics()
- 10 core/modules/help_topics/src/Plugin/HelpSection/HelpTopicSection.php \Drupal\help_topics\Plugin\HelpSection\HelpTopicSection::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/ src/ Plugin/ HelpSection/ HelpTopicSection.php, line 197
Class
- HelpTopicSection
- Provides the help topics list section for the help page.
Namespace
Drupal\help_topics\Plugin\HelpSectionCode
public function listSearchableTopics() {
$definitions = $this->pluginManager
->getDefinitions();
return array_column($definitions, 'id');
}