public function AccessControl::__construct in Group 2.0.x
Constructs a new AccessControl.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\group\Plugin\Group\Relation\GroupRelationManagerInterface $groupRelationManager: The group relation manager.
File
- src/
Plugin/ Group/ RelationHandlerDefault/ AccessControl.php, line 33
Class
- AccessControl
- Provides access control for group relation plugins.
Namespace
Drupal\group\Plugin\Group\RelationHandlerDefaultCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, GroupRelationManagerInterface $groupRelationManager) {
$this->entityTypeManager = $entity_type_manager;
$this->groupRelationManager = $groupRelationManager;
}