You are here

function activity_logger_form_message_template_form_builder in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  2. 8 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  3. 8.2 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  4. 8.3 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  5. 8.4 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  6. 8.5 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  7. 8.6 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  8. 8.7 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  9. 8.8 modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  10. 10.3.x modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  11. 10.0.x modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()
  12. 10.2.x modules/custom/activity_logger/activity_logger.module \activity_logger_form_message_template_form_builder()

Entity builder for the message type edit form with third party options.

See also

activity_logger_form_message_template_form_alter()

1 string reference to 'activity_logger_form_message_template_form_builder'
activity_logger_form_message_template_form_alter in modules/custom/activity_logger/activity_logger.module
Implements hook_form_FORM_ID_alter() for message_template_form().

File

modules/custom/activity_logger/activity_logger.module, line 180
Contains activity_logger.module..

Code

function activity_logger_form_message_template_form_builder($entity_type, MessageTemplateInterface $message_template, &$form, FormStateInterface $form_state) {
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_bundle_entities', $form_state
    ->getValue('activity_bundle_entities'));
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_action', $form_state
    ->getValue('activity_action'));
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_context', $form_state
    ->getValue('activity_context'));
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_destinations', $form_state
    ->getValue('activity_destinations'));
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_create_direct', $form_state
    ->getValue('activity_create_direct'));
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_aggregate', $form_state
    ->getValue('activity_aggregate'));
  $message_template
    ->setThirdPartySetting('activity_logger', 'activity_entity_condition', $form_state
    ->getValue('activity_entity_condition'));
}