You are here

public function WebformAnalysisChart::createComponentId in Webform Analysis 8

CreateComponentId.

Parameters

string $component: Component name.

Return value

string Component Id.

Overrides WebformAnalysisChartInterface::createComponentId

1 call to WebformAnalysisChart::createComponentId()
WebformAnalysisChart::build in src/WebformAnalysisChart.php
Build.

File

src/WebformAnalysisChart.php, line 116

Class

WebformAnalysisChart
Webform Analysis Chart.

Namespace

Drupal\webform_analysis

Code

public function createComponentId($component) {
  return 'webform-chart--' . $component . '--' . Crypt::randomBytesBase64(8);
}