class HelpSectionManager

Same name in this branch
  1. 9 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager
Same name and namespace in other branches
  1. 11.x core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager
  2. 10 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager
  3. 10 core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager
  4. 8.9.x core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager
  5. 8.9.x core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager

Manages help page section plugins.

Hierarchy

Expanded class hierarchy of HelpSectionManager

See also

\Drupal\help\HelpSectionPluginInterface

\Drupal\help\Plugin\HelpSection\HelpSectionPluginBase

\Drupal\help\Annotation\HelpSection

hook_help_section_info_alter()

3 files declare their use of HelpSectionManager
HelpController.php in core/modules/help/src/Controller/HelpController.php
HelpSearch.php in core/modules/help_topics/src/Plugin/Search/HelpSearch.php
HelpSectionManager.php in core/modules/help_topics/src/HelpSectionManager.php
1 string reference to 'HelpSectionManager'
help.services.yml in core/modules/help/help.services.yml
core/modules/help/help.services.yml
1 service uses HelpSectionManager
plugin.manager.help_section in core/modules/help/help.services.yml
Drupal\help\HelpSectionManager

File

core/modules/help/src/HelpSectionManager.php, line 17

Namespace

Drupal\help
View source
class HelpSectionManager extends DefaultPluginManager {
  
  /**
   * Constructs a new HelpSectionManager.
   *
   * @param \Traversable $namespaces
   *   An object that implements \Traversable which contains the root paths
   *   keyed by the corresponding namespace to look for plugin implementations.
   * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
   *   Cache backend instance to use.
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
   *   The module handler for the alter hook.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/HelpSection', $namespaces, $module_handler, 'Drupal\\help\\HelpSectionPluginInterface', 'Drupal\\help\\Annotation\\HelpSection');
    $this->alterInfo('help_section_info');
    $this->setCacheBackend($cache_backend, 'help_section_plugins');
  }

}

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