public function OgRouteGroupResolverBase::__construct in Organic groups 8
Constructor for OgGroupResolver plugins that inspect that route.
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.
Overrides PluginBase::__construct
1 call to OgRouteGroupResolverBase::__construct()
- RouteGroupContentResolver::__construct in src/
Plugin/ OgGroupResolver/ RouteGroupContentResolver.php - Constructs a RouteGroupContentResolver.
1 method overrides OgRouteGroupResolverBase::__construct()
- RouteGroupContentResolver::__construct in src/
Plugin/ OgGroupResolver/ RouteGroupContentResolver.php - Constructs a RouteGroupContentResolver.
File
- src/
OgRouteGroupResolverBase.php, line 62
Class
- OgRouteGroupResolverBase
- Base class for OgGroupResolver plugins that inspect the route.
Namespace
Drupal\ogCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, GroupTypeManagerInterface $group_type_manager, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
$this->groupTypeManager = $group_type_manager;
$this->entityTypeManager = $entity_type_manager;
}