You are here

public function YamlFormHelpManager::__construct in YAML Form 8

Constructs a YamlFormHelpManager object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: Current user.

\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\yamlform\YamlFormAddOnsManagerInterface $addons_manager: The YAML Form add-ons manager.

\Drupal\yamlform\YamlFormLibrariesManagerInterface $libraries_manager: The YAML Form libraries manager.

File

src/YamlFormHelpManager.php, line 94

Class

YamlFormHelpManager
Form help manager.

Namespace

Drupal\yamlform

Code

public function __construct(AccountInterface $current_user, ModuleHandlerInterface $module_handler, StateInterface $state, PathMatcherInterface $path_matcher, YamlFormAddOnsManagerInterface $addons_manager, YamlFormLibrariesManagerInterface $libraries_manager) {
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
  $this->state = $state;
  $this->pathMatcher = $path_matcher;
  $this->addOnsManager = $addons_manager;
  $this->librariesManager = $libraries_manager;
  $this->help = $this
    ->initHelp();
  $this->videos = $this
    ->initVideos();
}