public function SimpleFbConnectUserManager::__construct in Simple FB Connect 8.3
Same name and namespace in other branches
- 8.2 src/SimpleFbConnectUserManager.php \Drupal\simple_fb_connect\SimpleFbConnectUserManager::__construct()
Constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Used for accessing Drupal configuration.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Used for logging errors.
\Drupal\Core\TranslationInterface $string_translation: Used for translating strings in UI messages.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Used for dispatching events to other modules.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Used for loading and creating Drupal user objects.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Used for access Drupal user field definitions.
\Drupal\Core\Utility\Token $token: Used for token support in Drupal user picture directory.
\Drupal\Core\Transliteration\PhpTransliteration $transliteration: Used for user picture directory and file transiliteration.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: Used for detecting the current UI language.
File
- src/
SimpleFbConnectUserManager.php, line 59
Class
- SimpleFbConnectUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\simple_fb_connectCode
public function __construct(ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, TranslationInterface $string_translation, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, Token $token, PhpTransliteration $transliteration, LanguageManagerInterface $language_manager) {
$this->configFactory = $config_factory;
$this->loggerFactory = $logger_factory;
$this->stringTranslation = $string_translation;
$this->eventDispatcher = $event_dispatcher;
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->token = $token;
$this->transliteration = $transliteration;
$this->languageManager = $language_manager;
}