You are here

public function TeamMembersSelection::__construct in Apigee Edge 8

TeamMembersSelection 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\EntityTypeManagerInterface $entity_type_manager: The entity manager service.

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

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

\Drupal\apigee_edge_teams\TeamMembershipManagerInterface $team_membership_manager: The team membership manager.

\Drupal\apigee_edge\Entity\Controller\DeveloperControllerInterface $developer_controller: The developer controller service.

\Psr\Log\LoggerInterface $logger: The logger.

Overrides UserSelection::__construct

File

modules/apigee_edge_teams/src/Plugin/EntityReferenceSelection/TeamMembersSelection.php, line 97

Class

TeamMembersSelection
Provides a team member entity selection plugin.

Namespace

Drupal\apigee_edge_teams\Plugin\EntityReferenceSelection

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user, Connection $connection, TeamMembershipManagerInterface $team_membership_manager, DeveloperControllerInterface $developer_controller, LoggerInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $module_handler, $current_user, $connection);
  $this->teamMembershipManager = $team_membership_manager;
  $this->developerController = $developer_controller;
  $this->logger = $logger;
}