protected function EmailOverrideForm::getEmailOptions in Easy Email 8
Same name and namespace in other branches
- 2.0.x modules/easy_email_override/src/Form/EmailOverrideForm.php \Drupal\easy_email_override\Form\EmailOverrideForm::getEmailOptions()
Return value
array
1 call to EmailOverrideForm::getEmailOptions()
- EmailOverrideForm::form in modules/
easy_email_override/ src/ Form/ EmailOverrideForm.php - Gets the actual form array to be built.
File
- modules/
easy_email_override/ src/ Form/ EmailOverrideForm.php, line 63
Class
- EmailOverrideForm
- Class EmailOverrideForm.
Namespace
Drupal\easy_email_override\FormCode
protected function getEmailOptions() {
$options = [];
$definitions = $this->emailManager
->getDefinitions();
foreach ($definitions as $id => $definition) {
$options[$id] = $definition['label'];
}
return $options;
}