You are here

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

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_invite/src/Plugin/Menu/LocalTask/GroupInviteLocalTask.php \Drupal\social_group_invite\Plugin\Menu\LocalTask\GroupInviteLocalTask::__construct()
  2. 10.3.x modules/social_features/social_group/modules/social_group_invite/src/Plugin/Menu/LocalTask/GroupInviteLocalTask.php \Drupal\social_group_invite\Plugin\Menu\LocalTask\GroupInviteLocalTask::__construct()
  3. 10.0.x modules/social_features/social_group/modules/social_group_invite/src/Plugin/Menu/LocalTask/GroupInviteLocalTask.php \Drupal\social_group_invite\Plugin\Menu\LocalTask\GroupInviteLocalTask::__construct()
  4. 10.1.x modules/social_features/social_group/modules/social_group_invite/src/Plugin/Menu/LocalTask/GroupInviteLocalTask.php \Drupal\social_group_invite\Plugin\Menu\LocalTask\GroupInviteLocalTask::__construct()

Construct the UnapprovedComments object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match.

\Drupal\ginvite\GroupInvitationLoaderInterface $invitationLoader: The invite loader.

Overrides PluginBase::__construct

File

modules/social_features/social_group/modules/social_group_invite/src/Plugin/Menu/LocalTask/GroupInviteLocalTask.php, line 49

Class

GroupInviteLocalTask
Provides a local task that shows the amount of group invites.

Namespace

Drupal\social_group_invite\Plugin\Menu\LocalTask

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, RouteMatchInterface $routeMatch, GroupInvitationLoaderInterface $invitationLoader) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routeMatch = $routeMatch;
  $this->invitationLoader = $invitationLoader;
}