You are here

protected function AdminHelp::reg_options_allow_url_load in Webform CiviCRM Integration 8.5

File

src/AdminHelp.php, line 242
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 reg_options_allow_url_load() {
  return '<p>' . t('Allow events in "User Select" mode to be auto-filled from URL.') . '</p>' . '<br /><p>' . t('Example for "Register all":') . '<br /><code>' . Url::fromUri("internal:/node", [
    'absolute' => TRUE,
  ])
    ->toString() . '/{node.nid}?event1={event1.event_id},{event2.event_id}</code></p><br />' . t('Example for "Register separately":') . '<br /><code>' . Url::fromUri("internal:/node", [
    'absolute' => TRUE,
  ])
    ->toString() . '/{node.nid}?c1event1={event1.event_id},{event2.event_id}&amp;c2event1={event3.event_id}</code></p>';
}