public function WebformHelpManager::buildIndex in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformHelpManager.php \Drupal\webform\WebformHelpManager::buildIndex()
Build the main help page for the Webform module.
Return value
array An render array containing help for the Webform module.
Overrides WebformHelpManagerInterface::buildIndex
File
- src/
WebformHelpManager.php, line 322
Class
- WebformHelpManager
- Webform help manager.
Namespace
Drupal\webformCode
public function buildIndex() {
$build = [];
if (!$this->configFactory
->get('webform.settings')
->get('ui.support_disabled')) {
$build['support'] = [
'#theme' => 'webform_help_support',
];
}
$build['videos'] = $this
->buildVideos();
return $build;
}