public function MembershipManager::__construct in Organic groups 8
Constructs a MembershipManager object.
Parameters
\Drupal\core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\og\OgGroupAudienceHelperInterface $group_audience_helper: The OG group audience helper.
\Drupal\Core\Cache\CacheBackendInterface $cache: The static cache backend.
File
- src/
MembershipManager.php, line 53
Class
- MembershipManager
- Service for managing memberships and group content.
Namespace
Drupal\ogCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, OgGroupAudienceHelperInterface $group_audience_helper, CacheBackendInterface $cache) {
$this->entityTypeManager = $entity_type_manager;
$this->groupAudienceHelper = $group_audience_helper;
$this->staticCache = $cache;
}