private function MailEditTemplateForm::getEmailName in Mail Editor 8
Extract the name of the email item from an email ID.
Parameters
string $id: A string in the format 'MODULENAME.CONFIGNAME.TEMPLATENAME'.
Return value
string The email template name.
2 calls to MailEditTemplateForm::getEmailName()
- MailEditTemplateForm::getTemplate in src/
Form/ MailEditTemplateForm.php - Load an email template from a combination string.
- MailEditTemplateForm::submitForm in src/
Form/ MailEditTemplateForm.php - Form submission handler.
File
- src/
Form/ MailEditTemplateForm.php, line 180
Class
- MailEditTemplateForm
- Edit an email template.
Namespace
Drupal\mail_edit\FormCode
private function getEmailName($id) {
$parts = explode('.', $id);
unset($parts[0]);
unset($parts[1]);
return implode('.', $parts);
}