SearchableHelpInterface
interface SearchableHelpInterface (View source)
| internal | Help Topics is currently experimental and should only be leveraged by experimental modules and development releases of contributed modules. See https://www.drupal.org/core/experimental for more information. |
Provides an interface for a HelpSection plugin that also supports search.
Methods
string[]
listSearchableTopics()
Returns the IDs of topics that should be indexed for searching.
array
renderTopicForSearch(string $topic_id, LanguageInterface $language)
Renders one topic for search indexing or search results.
Details
string[]
listSearchableTopics()
Returns the IDs of topics that should be indexed for searching.
array
renderTopicForSearch(string $topic_id, LanguageInterface $language)
Renders one topic for search indexing or search results.