public function OgRoleManager::__construct in Organic groups 8
Constructs an OgRoleManager object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\og\PermissionManagerInterface $permission_manager: The OG permission manager.
File
- src/
OgRoleManager.php, line 55
Class
- OgRoleManager
- Defines a manager of an OG role.
Namespace
Drupal\ogCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, PermissionManagerInterface $permission_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->eventDispatcher = $event_dispatcher;
$this->permissionManager = $permission_manager;
}