private function MandrillAdminSettingsForm::mailConfigurationUsesMandrillMail in Mandrill 8
Check if a mail configuration has sender or formatter set to Mandrill.
Parameters
array $configuration: Must have keys sender and formatter set.
Return value
bool TRUE if configuration uses, FALSE otherwise.
1 call to MandrillAdminSettingsForm::mailConfigurationUsesMandrillMail()
File
- src/
Form/ MandrillAdminSettingsForm.php, line 313
Class
- MandrillAdminSettingsForm
- Implements an Mandrill Admin Settings form.
Namespace
Drupal\mandrill\FormCode
private function mailConfigurationUsesMandrillMail(array $configuration) {
// The sender and formatter is required keys.
if (!isset($configuration['sender']) || !isset($configuration['formatter'])) {
return FALSE;
}
if ($configuration['sender'] === 'mandrill_mail' || $configuration['formatter'] === 'mandrill_mail') {
return TRUE;
}
return FALSE;
}