public function WebformHelpManager::getGroup in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformHelpManager.php \Drupal\webform\WebformHelpManager::getGroup()
Get group.
Parameters
string|null $id: (optional) Group name.
Return value
array|mixed A single group item or all groups.
Overrides WebformHelpManagerInterface::getGroup
File
- src/
WebformHelpManager.php, line 150
Class
- WebformHelpManager
- Webform help manager.
Namespace
Drupal\webformCode
public function getGroup($id = NULL) {
if ($id !== NULL) {
return isset($this->groups[$id]) ? $this->groups[$id] : NULL;
}
else {
return $this->groups;
}
}