public function WebformAnalysis::getComponentTitle in Webform Analysis 8
Get Component title.
Parameters
string $component: The component name.
Return value
string Component title.
Overrides WebformAnalysisInterface::getComponentTitle
File
- src/
WebformAnalysis.php, line 155
Class
- WebformAnalysis
- WebformAnalysis.
Namespace
Drupal\webform_analysisCode
public function getComponentTitle($component) {
if (!isset($this
->getElements()[$component]['#title'])) {
return $component;
}
return $this
->getElements()[$component]['#title'];
}