protected function EmailActionBase::templateList in Ubercart 8.4
Returns an array of invoice templates found in ubercart/uc_order/templates.
1 call to EmailActionBase::templateList()
- EmailActionBase::templateOptions in uc_order/
src/ Plugin/ RulesAction/ EmailActionBase.php - Returns a list of options for a template select box.
File
- uc_order/
src/ Plugin/ RulesAction/ EmailActionBase.php, line 128
Class
- EmailActionBase
- Provides a base class for RulesActions that send email.
Namespace
Drupal\uc_order\Plugin\RulesActionCode
protected function templateList() {
$invoke = \Drupal::moduleHandler()
->invokeAll('uc_invoice_templates');
$templates = array_combine($invoke, $invoke);
// Sort the template names alphabetically.
sort($templates);
return [
'admin',
'customer',
] + $templates;
}