You are here

public function AdminHelp::getHelpText in Webform CiviCRM Integration 8.5

Get help text for the field.

Parameters

string $topic:

1 call to AdminHelp::getHelpText()
AdminHelp::addHelpDescription in src/AdminHelp.php
Set help text on the field description.

File

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

public function getHelpText($topic) {
  if (method_exists($this, $topic)) {
    return $this
      ->{$topic}();
  }
  elseif (strpos($topic, 'custom_') === 0) {
    return $this
      ->custom($topic);
  }
  elseif (strpos($topic, 'fieldset_') === 0) {
    return $this
      ->fieldset($topic);
  }
  return '';
}