You are here

public static function PetHelper::hasMimeMail in Previewable email templates 8.3

Check if Mime Mail is installed and enabled.

Return value

bool TRUE if enabled.

5 calls to PetHelper::hasMimeMail()
PetForm::buildForm in src/Form/PetForm.php
Form constructor.
PetPreviewForm::buildForm in src/Form/PetPreviewForm.php
Form constructor.
PetPreviewForm::makePreview in src/Form/PetPreviewForm.php
Generate a preview of the tokenized email for the first in the list.
PetPreviewForm::submitForm in src/Form/PetPreviewForm.php
Form submission handler.
pet_mail in ./pet.module
Implements hook_mail().

File

src/Utility/PetHelper.php, line 59

Class

PetHelper
PetHelper.

Namespace

Drupal\pet\Utility

Code

public static function hasMimeMail() {
  return \Drupal::moduleHandler()
    ->moduleExists('mimemail');
}