You are here

protected function EmailOverrideForm::getEasyEmailTemplateOptions 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::getEasyEmailTemplateOptions()
1 call to EmailOverrideForm::getEasyEmailTemplateOptions()
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 93

Class

EmailOverrideForm
Class EmailOverrideForm.

Namespace

Drupal\easy_email_override\Form

Code

protected function getEasyEmailTemplateOptions() {
  $options = [];
  foreach ($this->easyEmailTypeStorage
    ->loadMultiple() as $easy_email_type) {
    $options[$easy_email_type
      ->id()] = $easy_email_type
      ->label();
  }
  return $options;
}