You are here

public function FollowTaxonomyActivityContext::__construct in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.0.x modules/social_features/social_follow_taxonomy/src/Plugin/ActivityContext/FollowTaxonomyActivityContext.php \Drupal\social_follow_taxonomy\Plugin\ActivityContext\FollowTaxonomyActivityContext::__construct()
  2. 10.1.x modules/social_features/social_follow_taxonomy/src/Plugin/ActivityContext/FollowTaxonomyActivityContext.php \Drupal\social_follow_taxonomy\Plugin\ActivityContext\FollowTaxonomyActivityContext::__construct()
  3. 10.2.x modules/social_features/social_follow_taxonomy/src/Plugin/ActivityContext/FollowTaxonomyActivityContext.php \Drupal\social_follow_taxonomy\Plugin\ActivityContext\FollowTaxonomyActivityContext::__construct()

ActivityContextBase constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\Query\Sql\QueryFactory $entity_query: The entity query.

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

\Drupal\activity_creator\ActivityFactory $activity_factory: The activity factory service.

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

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\social_group\SocialGroupHelperService $group_helper_service: The group helper service.

Overrides ActivityContextBase::__construct

File

modules/social_features/social_follow_taxonomy/src/Plugin/ActivityContext/FollowTaxonomyActivityContext.php, line 70

Class

FollowTaxonomyActivityContext
Provides a 'FollowTaxonomyActivityContext' activity context plugin.

Namespace

Drupal\social_follow_taxonomy\Plugin\ActivityContext

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, QueryFactory $entity_query, EntityTypeManagerInterface $entity_type_manager, ActivityFactory $activity_factory, ModuleHandlerInterface $module_handler, Connection $connection, SocialGroupHelperService $group_helper_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_query, $entity_type_manager, $activity_factory);
  $this->moduleHandler = $module_handler;
  $this->connection = $connection;
  $this->groupHelperService = $group_helper_service;
}