You are here

public function OgEventSubscriber::__construct in Organic groups 8

Constructs an OgEventSubscriber object.

Parameters

\Drupal\og\PermissionManagerInterface $permission_manager: The OG permission manager.

\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.

\Drupal\og\OgAccessInterface $og_access: The OG access service.

File

src/EventSubscriber/OgEventSubscriber.php, line 70

Class

OgEventSubscriber
Event subscribers for Organic Groups.

Namespace

Drupal\og\EventSubscriber

Code

public function __construct(PermissionManagerInterface $permission_manager, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, OgAccessInterface $og_access) {
  $this->permissionManager = $permission_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->ogAccess = $og_access;
}