You are here

public function WebformHelpManager::getHelp in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformHelpManager.php \Drupal\webform\WebformHelpManager::getHelp()

Get help.

Parameters

string|null $id: (optional) Help id.

Return value

array|mixed A single help item or all help.

Overrides WebformHelpManagerInterface::getHelp

1 call to WebformHelpManager::getHelp()
WebformHelpManager::buildLibraries in src/WebformHelpManager.php
Build the libraries section.

File

src/WebformHelpManager.php, line 162

Class

WebformHelpManager
Webform help manager.

Namespace

Drupal\webform

Code

public function getHelp($id = NULL) {
  if ($id !== NULL) {
    return isset($this->help[$id]) ? $this->help[$id] : NULL;
  }
  else {
    return $this->help;
  }
}