You are here

public function WebformHelpManager::__construct in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformHelpManager.php \Drupal\webform\WebformHelpManager::__construct()

Constructs a WebformHelpManager object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher.

\Drupal\webform\WebformAddOnsManagerInterface $addons_manager: The webform add-ons manager.

\Drupal\webform\WebformLibrariesManagerInterface $libraries_manager: The webform libraries manager.

\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager.

File

src/WebformHelpManager.php, line 132

Class

WebformHelpManager
Webform help manager.

Namespace

Drupal\webform

Code

public function __construct(AccountInterface $current_user, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, StateInterface $state, PathMatcherInterface $path_matcher, WebformAddOnsManagerInterface $addons_manager, WebformLibrariesManagerInterface $libraries_manager, WebformElementManagerInterface $element_manager) {
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->state = $state;
  $this->pathMatcher = $path_matcher;
  $this->addOnsManager = $addons_manager;
  $this->librariesManager = $libraries_manager;
  $this->elementManager = $element_manager;
  $this->groups = $this
    ->initGroups();
  $this->help = $this
    ->initHelp();
  $this->videos = $this
    ->initVideos();
}