public function HookHelpSection::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/help/src/Plugin/HelpSection/HookHelpSection.php \Drupal\help\Plugin\HelpSection\HookHelpSection::__construct()
Constructs a HookHelpSection object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
Overrides PluginBase::__construct
File
- core/
modules/ help/ src/ Plugin/ HelpSection/ HookHelpSection.php, line 40
Class
- HookHelpSection
- Provides the module topics list section for the help page.
Namespace
Drupal\help\Plugin\HelpSectionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
}