You are here

public function GroupMembershipPostInstall::__construct in Group 2.0.x

Constructs a new GroupMembershipPostInstall.

Parameters

\Drupal\group\Plugin\Group\RelationHandler\PostInstallInterface $parent: The default post install handler.

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Plugin/Group/RelationHandler/GroupMembershipPostInstall.php, line 28

Class

GroupMembershipPostInstall
Provides post install tasks for the group_membership relation plugin.

Namespace

Drupal\group\Plugin\Group\RelationHandler

Code

public function __construct(PostInstallInterface $parent, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->parent = $parent;
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}