public function EmailActionBase::templateOptions in Ubercart 8.4
Returns a list of options for a template select box.
File
- uc_order/
src/ Plugin/ RulesAction/ EmailActionBase.php, line 114
Class
- EmailActionBase
- Provides a base class for RulesActions that send email.
Namespace
Drupal\uc_order\Plugin\RulesActionCode
public function templateOptions($custom = FALSE) {
$list = $this
->templateList();
$templates = array_combine($list, $list);
if ($custom) {
$templates[0] = $this
->t('Custom template');
}
return $templates;
}