You are here

protected function EmailOverrideForm::getEmailOptions in Easy Email 8

Same name and namespace in other branches
  1. 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\Form

Code

protected function getEmailOptions() {
  $options = [];
  $definitions = $this->emailManager
    ->getDefinitions();
  foreach ($definitions as $id => $definition) {
    $options[$id] = $definition['label'];
  }
  return $options;
}