You are here

public function SettingsForm::__construct in AJAX Comments 8

Constructs a \Drupal\ajax_comments\Form\SettingsForm object.

Parameters

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

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The entity type bundle info service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 55

Class

SettingsForm
Configure 'ajax comments' settings for this site.

Namespace

Drupal\ajax_comments\Form

Code

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