HelpTopicPluginManager::$defaults

Same name and namespace in other branches
  1. 9 core/modules/help_topics/src/HelpTopicPluginManager.php \Drupal\help_topics\HelpTopicPluginManager::defaults
  2. 10 core/modules/help/src/HelpTopicPluginManager.php \Drupal\help\HelpTopicPluginManager::defaults
  3. 11.x core/modules/help/src/HelpTopicPluginManager.php \Drupal\help\HelpTopicPluginManager::defaults

Provides default values for all help topic plugins.

Type: array

Overrides DefaultPluginManager::$defaults

File

core/modules/help_topics/src/HelpTopicPluginManager.php, line 76

Class

HelpTopicPluginManager
Provides the default help_topic manager.

Namespace

Drupal\help_topics

Code

protected $defaults = [
    // The plugin ID.
'id' => '',
    // The title of the help topic plugin.
'label' => '',
    // Whether or not the topic should appear on the help topics list.
'top_level' => '',
    // List of related topic machine names.
'related' => [],
    // The class used to instantiate the plugin.
'class' => '',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.