HelpSectionPluginInterface
interface HelpSectionPluginInterface implements PluginInspectionInterface, CacheableDependencyInterface (View source)
Provides an interface for a plugin for a section of the /admin/help page.
Plugins of this type need to be annotated with \Drupal\help\Annotation\HelpSection annotation, and placed in the Plugin\HelpSection namespace directory. They are managed by the \Drupal\help\HelpSectionManager plugin manager class. There is a base class that may be helpful: \Drupal\help\Plugin\HelpSection\HelpSectionPluginBase.
Methods
Gets the definition of the plugin implementation.
The cache contexts associated with this object.
The cache tags associated with this object.
The maximum age for which this object may be cached.
Returns the title of the help section.
Returns the description text for the help section.
Returns a list of topics to show in the help section.
Details
string
getPluginId()
Gets the plugin_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
string[]
getCacheContexts()
The cache contexts associated with this object.
These identify a specific variation/representation of the object.
Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache.
string[]
getCacheTags()
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
int
getCacheMaxAge()
The maximum age for which this object may be cached.
string
getTitle()
Returns the title of the help section.
string
getDescription()
Returns the description text for the help section.
array
listTopics()
Returns a list of topics to show in the help section.