function workbench_email_transition_edit_builder in Workbench Email 8
Same name and namespace in other branches
- 2.x workbench_email.module \workbench_email_transition_edit_builder()
Entity builder for the transition form edit form with third party options.
See also
workbench_email_form_moderation_state_transition_edit_form_alter()
1 string reference to 'workbench_email_transition_edit_builder'
- workbench_email_form_moderation_state_transition_edit_form_alter in ./
workbench_email.module - Implements hook_form_FORM_ID_alter() for moderation_state_transition_edit_form.
File
- ./
workbench_email.module, line 57 - Provides main module functions.
Code
function workbench_email_transition_edit_builder($entity_type, ConfigEntityInterface $transition, &$form, FormStateInterface $form_state) {
$transition
->setThirdPartySetting('workbench_email', 'workbench_email_templates', array_filter($form_state
->getValue('workbench_email_templates')));
}