You are here

public function SocialGroupAccessControlHandler::__construct in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php \Drupal\social_group\Entity\Access\SocialGroupAccessControlHandler::__construct()
  2. 10.0.x modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php \Drupal\social_group\Entity\Access\SocialGroupAccessControlHandler::__construct()
  3. 10.1.x modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php \Drupal\social_group\Entity\Access\SocialGroupAccessControlHandler::__construct()

Constructs the group access control handler instance.

Parameters

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

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

Overrides EntityAccessControlHandler::__construct

File

modules/social_features/social_group/src/Entity/Access/SocialGroupAccessControlHandler.php, line 35

Class

SocialGroupAccessControlHandler
Extended access controller for the Group entity.

Namespace

Drupal\social_group\Entity\Access

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory) {
  parent::__construct($entity_type);
  $this->configFactory = $config_factory;
}