public function YamlFormThirdPartySettingsManager::__construct in YAML Form 8
Constructs a new YamlFormThirdPartySettingsManager.
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.
\Drupal\yamlform\YamlFormAddonsManagerInterface $addons_manager: The add-ons manager.
File
- src/
YamlFormThirdPartySettingsManager.php, line 66
Class
- YamlFormThirdPartySettingsManager
- Form third party settings manager.
Namespace
Drupal\yamlformCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, PathValidatorInterface $path_validator, YamlFormAddonsManagerInterface $addons_manager) {
$this->configFactory = $config_factory;
$this->moduleHandler = $module_handler;
$this->pathValidator = $path_validator;
$this->addonsManager = $addons_manager;
$this->config = $this->configFactory
->getEditable('yamlform.settings');
$this
->loadIncludes();
}