You are here

public function WebformGroupManager::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_group/src/WebformGroupManager.php \Drupal\webform_group\WebformGroupManager::__construct()

Constructs a WebformGroupManager object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

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

\Drupal\webform\WebformRequestInterface $request_handler: The webform request handler.

\Drupal\webform\WebformAccessRulesManagerInterface $access_rules_manager: The webform access rules manager.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

modules/webform_group/src/WebformGroupManager.php, line 95

Class

WebformGroupManager
Webform group manager manager.

Namespace

Drupal\webform_group

Code

public function __construct(AccountInterface $current_user, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, WebformRequestInterface $request_handler, WebformAccessRulesManagerInterface $access_rules_manager) {
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->requestHandler = $request_handler;
  $this->accessRulesManager = $access_rules_manager;
}