function HelpTopicSection::__construct

Same name in other branches
  1. 9 core/modules/help_topics/src/Plugin/HelpSection/HelpTopicSection.php \Drupal\help_topics\Plugin\HelpSection\HelpTopicSection::__construct()
  2. 8.9.x core/modules/help_topics/src/Plugin/HelpSection/HelpTopicSection.php \Drupal\help_topics\Plugin\HelpSection\HelpTopicSection::__construct()
  3. 11.x core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php \Drupal\help\Plugin\HelpSection\HelpTopicSection::__construct()

Constructs a HelpTopicSection 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\help\HelpTopicPluginManagerInterface $pluginManager: The help topic plugin manager service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Language\LanguageDefault $defaultLanguage: The default language object.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

\Drupal\Core\StringTranslation\TranslationManager $translationManager: The translation manager. We are using a method that doesn't exist on an interface, so require this class.

File

core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php, line 69

Class

HelpTopicSection
Provides the help topics list section for the help page.

Namespace

Drupal\help\Plugin\HelpSection

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, HelpTopicPluginManagerInterface $pluginManager, RendererInterface $renderer, LanguageDefault $defaultLanguage, LanguageManagerInterface $languageManager, TranslationManager $translationManager) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
}

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