You are here

public function DeclaredEmailManager::__construct in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x modules/easy_email_override/src/Service/DeclaredEmailManager.php \Drupal\easy_email_override\Service\DeclaredEmailManager::__construct()

Constructs a new EmailOverrideManager object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

Overrides DefaultPluginManager::__construct

File

modules/easy_email_override/src/Service/DeclaredEmailManager.php, line 44

Class

DeclaredEmailManager
Manages discovery and instantiation of email plugins.

Namespace

Drupal\easy_email_override\Service

Code

public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
  $this->moduleHandler = $module_handler;
  $this
    ->setCacheBackend($cache_backend, 'easy_email_override', [
    'easy_email_override',
  ]);
}