You are here

public function NodeViewCountController::__construct in Node view count 8

Constructs a NodeViewCountController object.

Parameters

\Drupal\nodeviewcount\NodeViewCountRecordsManager $records_manager: Node view count records manager.

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

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

File

src/Controller/NodeViewCountController.php, line 49

Class

NodeViewCountController
Controller for updating nodeviewcount statistics for node.

Namespace

Drupal\nodeviewcount\Controller

Code

public function __construct(NodeViewCountRecordsManager $records_manager, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager) {
  $this->recordsManager = $records_manager;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
}