class HelpSectionManager
Same name in this branch
- 9 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager
Same name and namespace in other branches
- 11.x core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager
- 10 core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager
- 10 core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager
- 8.9.x core/modules/help_topics/src/HelpSectionManager.php \Drupal\help_topics\HelpSectionManager
- 8.9.x core/modules/help/src/HelpSectionManager.php \Drupal\help\HelpSectionManager
Manages help page section plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginManagerBase extends \Drupal\Component\Plugin\PluginManagerInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryTrait
- class \Drupal\Core\Plugin\DefaultPluginManager extends \Drupal\Component\Plugin\PluginManagerInterface, \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait, \Drupal\Core\Cache\UseCacheBackendTrait implements \Drupal\Component\Plugin\PluginManagerBase
- class \Drupal\help\HelpSectionManager implements \Drupal\Core\Plugin\DefaultPluginManager
- class \Drupal\Core\Plugin\DefaultPluginManager extends \Drupal\Component\Plugin\PluginManagerInterface, \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait, \Drupal\Core\Cache\UseCacheBackendTrait implements \Drupal\Component\Plugin\PluginManagerBase
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\helpView 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.