protected function AdminHelp::activity_assignee_contact_id in Webform CiviCRM Integration 8.5
File
- src/
AdminHelp.php, line 355 - Admin form inline-help.
Class
- AdminHelp
- Class AdminHelp Adding a function to this class with the same name as a field will magically add pop-up help for that field to the admin form.
Namespace
Drupal\webform_civicrmCode
protected function activity_assignee_contact_id() {
\Drupal::service('civicrm')
->initialize();
$utils = \Drupal::service('webform_civicrm.utils');
if ($utils
->wf_crm_get_civi_setting('activity_assignee_notification')) {
return '<p>' . t('A copy of this activity will be emailed to the assignee.') . '</p>';
}
else {
return '<p>' . t('Assignee notifications are currently disabled in CiviCRM; no email will be sent to the assignee.') . '</p>';
}
$this
->contact_reference();
}