You are here

public function RouteGroupContentResolver::__construct in Organic groups 8

Constructs a RouteGroupContentResolver.

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\Routing\RouteMatchInterface $route_match: The route match service.

\Drupal\og\GroupTypeManagerInterface $group_type_manager: The group type manager.

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

\Drupal\og\MembershipManagerInterface $membership_manager: The OG membership manager.

\Drupal\og\OgGroupAudienceHelperInterface $group_audience_helper: The OG group audience helper.

Overrides OgRouteGroupResolverBase::__construct

File

src/Plugin/OgGroupResolver/RouteGroupContentResolver.php, line 64

Class

RouteGroupContentResolver
Resolves the group from the route.

Namespace

Drupal\og\Plugin\OgGroupResolver

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, GroupTypeManagerInterface $group_type_manager, EntityTypeManagerInterface $entity_type_manager, MembershipManagerInterface $membership_manager, OgGroupAudienceHelperInterface $group_audience_helper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $route_match, $group_type_manager, $entity_type_manager);
  $this->membershipManager = $membership_manager;
  $this->groupAudienceHelper = $group_audience_helper;
}