You are here

public function WebformThirdPartySettingsManager::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformThirdPartySettingsManager.php \Drupal\webform\WebformThirdPartySettingsManager::__construct()

Constructs a WebformThirdPartySettingsManager object.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler class to use for loading includes.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator service.

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

File

src/WebformThirdPartySettingsManager.php, line 64

Class

WebformThirdPartySettingsManager
Webform third party settings manager.

Namespace

Drupal\webform

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, PathValidatorInterface $path_validator, WebformAddonsManagerInterface $addons_manager) {
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->pathValidator = $path_validator;
  $this->addonsManager = $addons_manager;
  $this->config = $this->configFactory
    ->get('webform.settings');
  $this
    ->loadIncludes();
}