You are here

public function AdminHelp::addHelpDescription in Webform CiviCRM Integration 8.5

Set help text on the field description.

Parameters

array $field:

string $topic:

Overrides AdminHelpInterface::addHelpDescription

File

src/AdminHelp.php, line 536
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 addHelpDescription(&$field, $topic) {
  $field['#description'] = $this
    ->getHelpText($topic) ?? NULL;
}