You are here

public function EmailTemplateService::checkTemplate in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_authentication/src/Routing/EmailTemplateService.php \Drupal\ldap_authentication\Routing\EmailTemplateService::checkTemplate()

Check for template if enabled.

Parameters

\Symfony\Component\HttpKernel\Event\GetResponseEvent $event: Response event.

File

ldap_authentication/src/Routing/EmailTemplateService.php, line 42

Class

EmailTemplateService
Email template service.

Namespace

Drupal\ldap_authentication\Routing

Code

public function checkTemplate(GetResponseEvent $event) : void {
  if ($this->config
    ->get('emailTemplateUsagePromptUser') === TRUE) {
    $this
      ->checkForEmailTemplate();
  }
}