You are here

public function TeamContextSwitcherBlock::__construct in Apigee Edge 8

TeamContextSwitcher 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\Session\AccountInterface $account: The current user account.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

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

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

\Drupal\apigee_edge_teams\TeamContextManagerInterface $team_context_manager: The Apigee team context manager.

Overrides BlockPluginTrait::__construct

File

modules/apigee_edge_teams/src/Plugin/Block/TeamContextSwitcherBlock.php, line 102

Class

TeamContextSwitcherBlock
Provides a block for switching team context.

Namespace

Drupal\apigee_edge_teams\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $account, RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, TeamMembershipManagerInterface $team_membership_manager, TeamContextManagerInterface $team_context_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->account = $account;
  $this->routeMatch = $route_match;
  $this->entityTypeManager = $entity_type_manager;
  $this->teamMembershipManager = $team_membership_manager;
  $this->teamContextManager = $team_context_manager;
}