You are here

private function AdminForm::addToggle in Webform CiviCRM Integration 8.5

Build select all/none js links for a fieldset

Return value

array The build information.

7 calls to AdminForm::addToggle()
AdminForm::buildActivityTab in src/AdminForm.php
Activity settings
AdminForm::buildCaseTab in src/AdminForm.php
Case settings FIXME: This is exactly the same code as buildGrantTab. More utilities and less boilerplate needed.
AdminForm::buildContactTab in src/AdminForm.php
Build fields for a contact
AdminForm::buildContributionTab in src/AdminForm.php
Contribution settings
AdminForm::buildGrantTab in src/AdminForm.php
Grant settings FIXME: This is nearly the same code as buildCaseTab. More utilities and less boilerplate needed.

... See full list

File

src/AdminForm.php, line 1659
Webform CiviCRM module's admin form.

Class

AdminForm
@file Webform CiviCRM module's admin form.

Namespace

Drupal\webform_civicrm

Code

private function addToggle($name) {
  return [
    '#markup' => '<div class="web-civi-js-select">
      <a class="all" href="#">' . t('Select All') . '</a> |
      <a class="none" href="#">' . t('Select None') . '</a> |
      <a class="reset" href="#">' . t('Restore') . '</a>
    </div>',
  ];
}