You are here

public function GroupContentUninstallValidator::__construct in Group 2.0.x

Same name in this branch
  1. 2.0.x src/UninstallValidator/GroupContentUninstallValidator.php \Drupal\group\UninstallValidator\GroupContentUninstallValidator::__construct()
  2. 2.0.x src/ProxyClass/UninstallValidator/GroupContentUninstallValidator.php \Drupal\group\ProxyClass\UninstallValidator\GroupContentUninstallValidator::__construct()
Same name and namespace in other branches
  1. 8 src/UninstallValidator/GroupContentUninstallValidator.php \Drupal\group\UninstallValidator\GroupContentUninstallValidator::__construct()

Constructs a new GroupContentUninstallValidator object.

Parameters

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

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

\Drupal\group\Plugin\Group\Relation\GroupRelationManagerInterface $plugin_manager: The group content plugin manager.

File

src/UninstallValidator/GroupContentUninstallValidator.php, line 40

Class

GroupContentUninstallValidator

Namespace

Drupal\group\UninstallValidator

Code

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