protected function UsermailDebuggerForm::getOperations in Mail Debugger 8
Function returns operations array.
Return value
array array of operations.
1 call to UsermailDebuggerForm::getOperations()
- UsermailDebuggerForm::buildForm in src/
Form/ UsermailDebuggerForm.php - Build Form function.
File
- src/
Form/ UsermailDebuggerForm.php, line 127
Class
- UsermailDebuggerForm
- Class UsermailDebuggerForm.
Namespace
Drupal\mail_debugger\FormCode
protected function getOperations() {
$result = [];
foreach ($this->userMailConfig
->get() as $maybeOperation => $config) {
// Operation?
if (!empty($config['subject'])) {
// Tokens intentionally unprocessed.
$result[$maybeOperation] = $config['subject'];
}
}
return $result;
}