You are here

public function FieldProvider::__construct in Lightweight Directory Access Protocol (LDAP) 8.4

Constructor.

Parameters

\Drupal\Core\Config\ConfigFactory $config_factory: Config factory.

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

\Drupal\Core\Extension\ModuleHandler $module_handler: Module handler.

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: Entity field manager.

File

ldap_user/src/FieldProvider.php, line 87

Class

FieldProvider
Provides the basic and required fields needed for user mappings.

Namespace

Drupal\ldap_user

Code

public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, ModuleHandler $module_handler, EntityFieldManager $entity_field_manager) {
  $this->config = $config_factory
    ->get('ldap_user.settings');
  $this->entityTypeManager = $entity_type_manager;
  $this->moduleHandler = $module_handler;
  $this->entityFieldManager = $entity_field_manager;
}