You are here

public function TeamPermission::__construct in Apigee Edge 8

Same name in this branch
  1. 8 modules/apigee_edge_teams/src/Structure/TeamPermission.php \Drupal\apigee_edge_teams\Structure\TeamPermission::__construct()
  2. 8 modules/apigee_edge_teams/src/Plugin/views/access/TeamPermission.php \Drupal\apigee_edge_teams\Plugin\views\access\TeamPermission::__construct()

TeamPermission 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\apigee_edge_teams\TeamPermissionHandlerInterface $team_permission_handler: The team permission handler.

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

Overrides PluginBase::__construct

File

modules/apigee_edge_teams/src/Plugin/views/access/TeamPermission.php, line 75

Class

TeamPermission
Access plugin for team-permission-based access control.

Namespace

Drupal\apigee_edge_teams\Plugin\views\access

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TeamPermissionHandlerInterface $team_permission_handler, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->teamPermissionHandler = $team_permission_handler;
  $this->routeMatch = $route_match;
}