You are here

public function ActivityLoggerFactory::__construct in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php \Drupal\activity_logger\Service\ActivityLoggerFactory::__construct()
  2. 10.0.x modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php \Drupal\activity_logger\Service\ActivityLoggerFactory::__construct()
  3. 10.1.x modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php \Drupal\activity_logger\Service\ActivityLoggerFactory::__construct()

ActivityLoggerFactory constructor.

Parameters

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

\Drupal\activity_creator\Plugin\ActivityEntityConditionManager $activityEntityConditionManager: The condition manager.

\Drupal\activity_creator\Plugin\ActivityContextManager $activityContextManager: The context manager.

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

File

modules/custom/activity_logger/src/Service/ActivityLoggerFactory.php, line 61

Class

ActivityLoggerFactory
Class ActivityLoggerFactory.

Namespace

Drupal\activity_logger\Service

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ActivityEntityConditionManager $activityEntityConditionManager, ActivityContextManager $activityContextManager, ModuleHandlerInterface $moduleHandler) {
  $this->entityTypeManager = $entityTypeManager;
  $this->activityEntityConditionManager = $activityEntityConditionManager;
  $this->activityContextManager = $activityContextManager;
  $this->moduleHandler = $moduleHandler;
}