public function MongodbCommentStatistics::__construct in MongoDB 8
Constructs the CommentStatistics service.
Parameters
MongoCollectionFactory $mongo: The mongodb colllection factory service.
\Drupal\Core\Session\AccountInterface $current_user: The current logged in user.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.
\Drupal\Core\State\StateInterface $state: The state service.
File
- mongodb_comment/
src/ MongodbCommentStatistics.php, line 62 - Contains \Drupal\comment\CommentStatistics.
Class
Namespace
Drupal\mongodb_commentCode
public function __construct(MongoCollectionFactory $mongo, AccountInterface $current_user, EntityManagerInterface $entity_manager, StateInterface $state) {
$this->mongo = $mongo;
$this->currentUser = $current_user;
$this->entityManager = $entity_manager;
$this->state = $state;
}