You are here

protected function AdminHelp::fieldset in Webform CiviCRM Integration 8.5

Get help for a fieldset

1 call to AdminHelp::fieldset()
AdminHelp::getHelpText in src/AdminHelp.php
Get help text for the field.

File

src/AdminHelp.php, line 503
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_civicrm

Code

protected function fieldset($param) {
  list(, $set) = explode('_', $param);
  \Drupal::service('civicrm')
    ->initialize();
  $help = '';
  $sets = \Drupal::service('webform_civicrm.utils')
    ->wf_crm_get_fields('sets');
  if (!empty($sets[$set]['help_text'])) {
    $help .= '<p>' . $sets[$set]['help_text'] . '</p>';
  }
  return $help;
}