You are here

public function GroupRoleStorage::__construct in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Storage/GroupRoleStorage.php \Drupal\group\Entity\Storage\GroupRoleStorage::__construct()

Constructs a GroupRoleStorage object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\group\GroupRoleSynchronizerInterface $group_role_synchronizer: The group role synchronizer service.

\Drupal\group\GroupMembershipLoaderInterface $group_membership_loader: The group membership loader.

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache backend.

Overrides ConfigEntityStorage::__construct

File

src/Entity/Storage/GroupRoleStorage.php, line 75

Class

GroupRoleStorage
Defines the storage handler class for group role entities.

Namespace

Drupal\group\Entity\Storage

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, GroupRoleSynchronizerInterface $group_role_synchronizer, GroupMembershipLoaderInterface $group_membership_loader, EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, MemoryCacheInterface $memory_cache) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
  $this->entityTypeManager = $entity_type_manager;
  $this->groupRoleSynchronizer = $group_role_synchronizer;
  $this->groupMembershipLoader = $group_membership_loader;
}