You are here

public function UsermailDebuggerForm::__construct in Mail Debugger 8

UsermailDebuggerForm constructor.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $storageFactory: The storage Factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity Type Manager.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config Factory.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/UsermailDebuggerForm.php, line 55

Class

UsermailDebuggerForm
Class UsermailDebuggerForm.

Namespace

Drupal\mail_debugger\Form

Code

public function __construct(PrivateTempStoreFactory $storageFactory, EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
  $this->defaultsStorage = $storageFactory
    ->get(static::class);
  $this->userStorage = $entityTypeManager
    ->getStorage('user');
  $this->userMailConfig = $configFactory
    ->get('user.mail');
}