You are here

public function DisqusCommentManager::__construct in Disqus 8

Constructs the DisqusCommentManager object.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

\Drupal\Core\Config\ConfigFactory $config_factory: A module handler.

File

src/DisqusCommentManager.php, line 69

Class

DisqusCommentManager
It contains common functions to manage disqus_comment fields.

Namespace

Drupal\disqus

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, AccountInterface $current_user, ModuleHandlerInterface $module_handler, ConfigFactory $config_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
  $this->configFactory = $config_factory;
}