You are here

public function DisqusSettingsForm::__construct in Disqus 8

Constructs a \Drupal\disqus\DisqusSettingsForm object.

Parameters

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

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

\Drupal\file\FileUsage\FileUsageInterface $file_usage: The file usage overridable.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides ConfigFormBase::__construct

File

src/Form/DisqusSettingsForm.php, line 51

Class

DisqusSettingsForm
Provides Disqus settings form.

Namespace

Drupal\disqus\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, FileUsageInterface $file_usage, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->fileUsage = $file_usage;
  $this->entityTypeManager = $entity_type_manager;
}