You are here

public function YamlFormHelpManager::buildIndex in YAML Form 8

Build the main help page for the YAML Form module.

Return value

array An render array containing help for the YAML Form module.

Overrides YamlFormHelpManagerInterface::buildIndex

File

src/YamlFormHelpManager.php, line 192

Class

YamlFormHelpManager
Form help manager.

Namespace

Drupal\yamlform

Code

public function buildIndex() {
  $build = [
    '#prefix' => '<div class="yamlform-help-accordion">',
    '#suffix' => '</div>',
  ];
  $build['about'] = $this
    ->buildAbout();
  $build['uses'] = $this
    ->buildUses();
  $build['libraries'] = $this
    ->buildLibraries();
  $build['#attached']['library'][] = 'yamlform/yamlform.help';
  return $build;
}