You are here

public function RequestQueryArgumentResolver::__construct in Organic groups 8

Constructs a RequestQueryArgumentResolver.

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.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

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

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

Overrides PluginBase::__construct

File

src/Plugin/OgGroupResolver/RequestQueryArgumentResolver.php, line 77

Class

RequestQueryArgumentResolver
Resolves the group from the query arguments on the request.

Namespace

Drupal\og\Plugin\OgGroupResolver

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RequestStack $request_stack, GroupTypeManagerInterface $group_type_manager, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->requestStack = $request_stack;
  $this->groupTypeManager = $group_type_manager;
  $this->entityTypeManager = $entity_type_manager;
}