public function GroupTypeManager::__construct in Organic groups 8
Constructs a GroupTypeManager object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The service providing information about bundles.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
\Drupal\og\PermissionManagerInterface $permission_manager: The OG permission manager.
\Drupal\og\OgRoleManagerInterface $og_role_manager: The OG role manager.
\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route builder service.
\Drupal\og\OgGroupAudienceHelperInterface $group_audience_helper: The OG group audience helper.
File
- src/
GroupTypeManager.php, line 165
Class
- GroupTypeManager
- A manager to keep track of which entity type/bundles are OG group enabled.
Namespace
Drupal\ogCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EventDispatcherInterface $event_dispatcher, CacheBackendInterface $cache, PermissionManagerInterface $permission_manager, OgRoleManagerInterface $og_role_manager, RouteBuilderInterface $route_builder, OgGroupAudienceHelperInterface $group_audience_helper) {
$this->configFactory = $config_factory;
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->eventDispatcher = $event_dispatcher;
$this->cache = $cache;
$this->permissionManager = $permission_manager;
$this->ogRoleManager = $og_role_manager;
$this->routeBuilder = $route_builder;
$this->groupAudienceHelper = $group_audience_helper;
}